Skip to content

Commit

Permalink
fix new fmt check
Browse files Browse the repository at this point in the history
  • Loading branch information
extrawurst committed Aug 26, 2023
1 parent 2377924 commit 11c65f6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion asyncgit/src/sync/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,9 @@ pub fn get_config_string_repo(
// gets returned when but it actually works
let entry_res = cfg.get_entry(key);

let Ok(entry) = entry_res else { return Ok(None) };
let Ok(entry) = entry_res else {
return Ok(None);
};

if entry.has_value() {
Ok(entry.value().map(std::string::ToString::to_string))
Expand Down

0 comments on commit 11c65f6

Please sign in to comment.