Skip to content

Commit

Permalink
fix: oops
Browse files Browse the repository at this point in the history
  • Loading branch information
Kha committed Feb 22, 2024
1 parent ce85519 commit 14d0a47
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# Unreleased

- Fix update check

# 3.1.0 - 2024-02-19

- Fix partial toolchains potentially being left in place when unpacking is aborted (#121)
Expand Down
2 changes: 1 addition & 1 deletion src/elan/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ pub fn check_self_update() -> Result<Option<String>> {
let tag = fetch_latest_release_tag("leanprover/elan")?;
let available_version = &tag[1..];

Ok(if available_version != current_version { None } else { Some(available_version.to_owned()) })
Ok(if available_version == current_version { None } else { Some(available_version.to_owned()) })
}

#[derive(Copy, Clone)]
Expand Down

0 comments on commit 14d0a47

Please sign in to comment.