Skip to content

Commit 5a51fc6

Browse files
author
Stephan Dilly
committed
cleanup
1 parent 246ea91 commit 5a51fc6

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/components/commit.rs

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,7 @@ impl CommitComponent {
385385

386386
let details = sync::get_commit_details(CWD, id)?;
387387

388-
self.input.set_title(strings::commit_title_amend(
389-
&self.key_config,
390-
));
388+
self.input.set_title(strings::commit_title_amend());
391389

392390
if let Some(msg) = details.message {
393391
self.input.set_text(msg.combine());

src/strings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ pub fn commit_title() -> String {
6868
pub fn commit_title_merge() -> String {
6969
"Commit (Merge)".to_string()
7070
}
71-
pub fn commit_title_amend(_key_config: &SharedKeyConfig) -> String {
71+
pub fn commit_title_amend() -> String {
7272
"Commit (Amend)".to_string()
7373
}
7474
pub fn commit_msg(_key_config: &SharedKeyConfig) -> String {

0 commit comments

Comments
 (0)