Skip to content

Commit 1d25e48

Browse files
committed
fix: simplify Option pattern per clippy
1 parent 7303b14 commit 1d25e48

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

  • crates/bashkit/src/interpreter

‎crates/bashkit/src/interpreter/mod.rs‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5141,10 +5141,8 @@ impl Interpreter {
51415141
|| is_keyword(cmd_name)
51425142
{
51435143
Some(cmd_name.to_string())
5144-
} else if let Some(path) = self.resolve_command_path(cmd_name).await {
5145-
Some(path)
51465144
} else {
5147-
None
5145+
self.resolve_command_path(cmd_name).await
51485146
};
51495147
let mut result = if let Some(name) = output {
51505148
ExecResult::ok(format!("{}\n", name))

0 commit comments

Comments
 (0)