Skip to content

Commit

Permalink
remove panicking functions
Browse files Browse the repository at this point in the history
  • Loading branch information
p00f committed Nov 13, 2023
1 parent 658c71c commit 4765933
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/hinter/cwd_aware.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ impl Hinter for CwdAwareHinter {
Err(err)
}
})
.expect("todo: error handling");
.unwrap_or_default();
if !with_cwd.is_empty() {
with_cwd[0]
.command_line
Expand All @@ -52,7 +52,7 @@ impl Hinter for CwdAwareHinter {
line.to_string(),
history.session(),
))
.expect("todo: error handling")
.unwrap_or_default()
.get(0)
.map_or_else(String::new, |entry| {
entry
Expand Down

0 comments on commit 4765933

Please sign in to comment.