Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
torfjelde authored Jul 28, 2023
1 parent b125e81 commit 6015e46
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions src/bin/juliaup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -148,9 +148,9 @@ enum ConfigSubCmd {
/// New value
value: Option<i64>,
},
#[clap(name = "checkchannelupdate")]
#[clap(name = "checkchanneluptodate")]
/// Check for updates to the default channel on startup
ShouldCheckChannelUpdate {
ShouldCheckChannelUptodate {
/// New Value
value: Option<bool>,
},
Expand Down Expand Up @@ -207,7 +207,7 @@ fn main() -> Result<()> {
ConfigSubCmd::VersionsDbUpdateInterval { value } => {
run_command_config_versionsdbupdate(value, false, &paths)
}
ConfigSubCmd::ShouldCheckChannelUpdate { value } => {
ConfigSubCmd::ShouldCheckChannelUptodate { value } => {
run_command_config_checkchanneluptodate(value, false, &paths)
}
},
Expand Down
6 changes: 3 additions & 3 deletions src/command_config_checkchanneluptodate.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,9 @@ pub fn run_command_config_checkchanneluptodate(

if !quiet {
if value_changed {
eprintln!("Property 'checkchannelupdate' set to '{}'", value);
eprintln!("Property 'checkchanneluptodate' set to '{}'", value);
} else {
eprintln!("Property 'checkchannelupdate' is already set to '{}'", value);
eprintln!("Property 'checkchanneluptodate' is already set to '{}'", value);
}
}
}
Expand All @@ -37,7 +37,7 @@ pub fn run_command_config_checkchanneluptodate(

if !quiet {
eprintln!(
"Property 'checkchannelupdate' set to '{}'",
"Property 'checkchanneluptodate' set to '{}'",
config_file.data.settings.should_check_channel_uptodate
);
}
Expand Down

0 comments on commit 6015e46

Please sign in to comment.