builtins : suppression if inutile
This commit is contained in:
parent
006dc28466
commit
13555cafb3
1 changed files with 2 additions and 4 deletions
|
@ -57,10 +57,8 @@ pub(crate) fn exit(args: &Vec<String>, _variables: &mut Variables, exit_code: &m
|
|||
}
|
||||
|
||||
pub(super) fn unset(args: &Vec<String>, variables: &mut Variables, exit_code: &mut ExitCode) {
|
||||
if !args.is_empty() {
|
||||
for variable_name in args.iter() {
|
||||
variables.unset(variable_name);
|
||||
}
|
||||
for variable_name in args.iter() {
|
||||
variables.unset(variable_name);
|
||||
}
|
||||
|
||||
exit_code.set_success();
|
||||
|
|
Loading…
Reference in a new issue