diff --git a/wireman/src/model/history.rs b/wireman/src/model/history.rs index b8e2783..ced69f8 100644 --- a/wireman/src/model/history.rs +++ b/wireman/src/model/history.rs @@ -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; }