Skip to content

Commit

Permalink
chore: code linting
Browse files Browse the repository at this point in the history
  • Loading branch information
bp7968h committed Oct 24, 2024
1 parent 6d97604 commit 5b01b76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions cli/args/flags.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5471,7 +5471,8 @@ fn import_map_arg_parse(flags: &mut Flags, matches: &mut ArgMatches) {
}

fn env_file_arg_parse(flags: &mut Flags, matches: &mut ArgMatches) {
flags.env_file = matches.get_many::<String>("env-file")
flags.env_file = matches
.get_many::<String>("env-file")
.map(|values| values.cloned().collect());
}

Expand Down Expand Up @@ -8250,7 +8251,6 @@ mod tests {
);
}


#[test]
fn cache_multiple() {
let r =
Expand Down
6 changes: 3 additions & 3 deletions cli/standalone/binary.rs
Original file line number Diff line number Diff line change
Expand Up @@ -650,11 +650,11 @@ impl<'a> DenoCompileBinaryWriter<'a> {
let mut aggregated_env_vars = IndexMap::new();
for env_filename in env_filenames.iter().rev() {
log::info!("{} Environment variables from the file \"{}\" were embedded in the generated executable file", crate::colors::yellow("Warning"), env_filename);
let env_vars = get_file_env_vars(env_filename.to_string())?;

let env_vars = get_file_env_vars(env_filename.to_string())?;
aggregated_env_vars.extend(env_vars);
}
aggregated_env_vars
aggregated_env_vars
}
None => Default::default(),
};
Expand Down

0 comments on commit 5b01b76

Please sign in to comment.