Skip to content

Commit

Permalink
small update'
Browse files Browse the repository at this point in the history
  • Loading branch information
italoacasas committed Mar 22, 2022
1 parent a37b796 commit 212224f
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions avm/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,7 @@ pub fn update() -> Result<()> {
// Find last stable version
let version = &get_latest_version();

install_version(version, false)?;
Ok(())
install_version(version, false)
}

/// Install a version of anchor-cli
Expand Down Expand Up @@ -122,8 +121,7 @@ pub fn install_version(version: &Version, force: bool) -> Result<()> {
current_version_file.write_all(version.to_string().as_bytes())?;
}

use_version(version)?;
Ok(())
use_version(version)
}

/// Remove an installed version of anchor-cli
Expand Down

0 comments on commit 212224f

Please sign in to comment.