Skip to content

Commit 8253167

Browse files
committed
Clean
1 parent 1f66245 commit 8253167

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

src/core/builtins.rs

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,10 +79,13 @@ pub fn unset(core: &mut ShellCore, args: &[String]) -> i32 {
7979

8080
for name in &args[1..] {
8181
if let Err(e) = core.db.unset(name) {
82-
error_exit(1, &args[0], &e, core); //exitしない
82+
error_exit(1, &args[0], &e, core); //exit(return)しない
8383
err_flag = true;
8484
}
8585
}
8686

87-
if err_flag { 1 } else { 0 }
87+
if err_flag {
88+
return 1;
89+
}
90+
0
8891
}

0 commit comments

Comments
 (0)