Skip to content

Commit 22d622f

Browse files
author
Stephan Dilly
committed
cleanup
1 parent 9391962 commit 22d622f

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

Diff for: src/components/commit.rs

+1-3
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());

Diff for: src/strings.rs

+1-1
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)