Skip to content

Commit

Permalink
refactor(cli): reorder if statement in cli::setup_mode::main()
Browse files Browse the repository at this point in the history
  • Loading branch information
rami3l committed Jan 19, 2024
1 parent ae68962 commit 5dcbd32
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/cli/setup_mode.rs
Original file line number Diff line number Diff line change
Expand Up @@ -109,19 +109,19 @@ pub fn main() -> Result<utils::ExitCode> {
return Ok(utils::ExitCode(0));
}

if &profile == "complete" {
warn!("{}", common::WARN_COMPLETE_PROFILE);
}

let opts = InstallOpts {
default_host_triple: default_host,
default_toolchain,
profile: profile.to_owned(),
profile,
no_modify_path,
no_update_toolchain: no_update_default_toolchain,
components: &components.iter().map(|s| &**s).collect::<Vec<_>>(),
targets: &targets.iter().map(|s| &**s).collect::<Vec<_>>(),
};

if profile == "complete" {
warn!("{}", common::WARN_COMPLETE_PROFILE);
}

self_update::install(no_prompt, verbose, quiet, opts)
}

0 comments on commit 5dcbd32

Please sign in to comment.