Skip to content

Commit

Permalink
Simplify
Browse files Browse the repository at this point in the history
  • Loading branch information
ryuichiueda committed Dec 30, 2024
1 parent 27e4344 commit 1d5f5a1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
5 changes: 1 addition & 4 deletions src/elements/expr/conditional.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,7 @@ impl ConditionalExpr {
match self.elements[i] {
CondElem::And | CondElem::Or => {
if next {
last = match Self::calculate(&self.elements[from..i], core) {
Ok(elem) => elem,
Err(e) => return Err(e),
};
last = Self::calculate(&self.elements[from..i], core)?;
}
from = i + 1;

Expand Down
2 changes: 1 addition & 1 deletion test/ok
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
./test_script.bash
./test_options.bash
./test_glob.bash
./test_redirects.bash
./test_glob.bash
./test_brace.bash
./test_builtins.bash
./test_others.bash
Expand Down

0 comments on commit 1d5f5a1

Please sign in to comment.