mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
clippy fix
This commit is contained in:
parent
f92363a0cf
commit
9101570e6c
1 changed files with 3 additions and 3 deletions
|
|
@ -81,10 +81,10 @@ impl ExternalEditorComponent {
|
|||
// does not address spaces in pn
|
||||
let mut echars = editor.chars().peekable();
|
||||
|
||||
let command: String = if *echars.peek().ok_or_else(|| {
|
||||
let first_char = *echars.peek().ok_or_else(|| {
|
||||
anyhow!("editor configuration set to empty string")
|
||||
})? == '\"'
|
||||
{
|
||||
})?;
|
||||
let command: String = if first_char == '\"' {
|
||||
echars
|
||||
.by_ref()
|
||||
.skip(1)
|
||||
|
|
|
|||
Loading…
Reference in a new issue