Skip to content
This repository has been archived by the owner on Oct 12, 2022. It is now read-only.

Commit

Permalink
Make clippy happy
Browse files Browse the repository at this point in the history
  • Loading branch information
r-darwish committed Dec 23, 2018
1 parent a0429fb commit 28e8ec7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ fn run() -> Result<(), Error> {

#[cfg(feature = "self-update")]
{
if !opt.dry_run && !env::var("TOPGRADE_NO_SELF_UPGRADE").is_ok() {
if !opt.dry_run && env::var("TOPGRADE_NO_SELF_UPGRADE").is_err() {
if let Err(e) = self_update::self_update() {
print_warning(format!("Self update error: {}", e));
if let Some(cause) = e.cause() {
Expand Down

0 comments on commit 28e8ec7

Please sign in to comment.