mirror of
https://github.com/gitui-org/gitui
synced 2026-05-23 08:58:21 +00:00
Address clippy lint in SSH signing
This commit is contained in:
parent
d76ed14742
commit
30f2df31c4
1 changed files with 4 additions and 5 deletions
|
|
@ -234,12 +234,11 @@ impl SignBuilder {
|
|||
}
|
||||
|
||||
fn path_contains_ssh_public_key(signing_key_path: &str) -> bool {
|
||||
std::fs::read_to_string(signing_key_path)
|
||||
.ok()
|
||||
.map(|contents| {
|
||||
std::fs::read_to_string(signing_key_path).ok().is_some_and(
|
||||
|contents| {
|
||||
Self::looks_like_ssh_public_key(contents.trim())
|
||||
})
|
||||
.unwrap_or(false)
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue