Skip to content

Commit

Permalink
satisfy clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
phire22 committed Apr 10, 2024
1 parent c56eaa7 commit efb7bd3
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions wireman/src/model/history.rs
Original file line number Diff line number Diff line change
Expand Up @@ -133,9 +133,7 @@ impl HistoryModel {
Logger::debug("history: no method selected");
return None;
};
let Some(path) = self.path(self.save_spot(), method).clone() else {
return None;
};
let path = self.path(self.save_spot(), method).clone()?;
if !path.exists() {
return None;
}
Expand Down

0 comments on commit efb7bd3

Please sign in to comment.