mirror of
https://github.com/AleoHQ/leo.git
synced 2024-11-29 03:35:10 +03:00
Clean up comments
This commit is contained in:
parent
bea3ee31f6
commit
a74a141e33
@ -69,12 +69,12 @@ impl Command for Update {
|
|||||||
}
|
}
|
||||||
|
|
||||||
fn apply(self, _: Context, _: Self::Input) -> Result<Self::Output> {
|
fn apply(self, _: Context, _: Self::Input) -> Result<Self::Output> {
|
||||||
// if --list is passed - simply list everything and exit
|
// If --list is passed, list all available versions and return.
|
||||||
if self.list {
|
if self.list {
|
||||||
return Updater::show_available_releases().map_err(|e| anyhow!("Could not fetch versions: {}", e));
|
return Updater::show_available_releases().map_err(|e| anyhow!("Could not fetch versions: {}", e));
|
||||||
}
|
}
|
||||||
|
|
||||||
// in case automatic subcommand was called
|
// Handles enabling and disabling automatic updates in the config file.
|
||||||
if let Some(Automatic::Automatic { value }) = self.automatic {
|
if let Some(Automatic::Automatic { value }) = self.automatic {
|
||||||
Config::set_update_automatic(value)?;
|
Config::set_update_automatic(value)?;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user