Skip to content

Commit

Permalink
don't log error in updater
Browse files Browse the repository at this point in the history
  • Loading branch information
bryanoltman committed May 16, 2023
1 parent d31780c commit 21c5123
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions library/src/updater.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,18 +97,8 @@ pub fn check_for_update() -> anyhow::Result<bool> {
// Load UpdaterState from disk
// If there is no state, make an empty state.
let state = UpdaterState::load_or_new_on_error(&config.cache_dir, &config.release_version);
// Send info from app + current slot to server.
let response_result = send_patch_check_request(&config, &state);
match response_result {
Err(err) => {
error!("Failed update check: {err}");
return false;
}
Ok(response) => {
return response.patch_available;
}
}
})
send_patch_check_request(&config, &state).map(|res| res.patch_available)
})?
}

fn check_hash(path: &Path, expected_string: &str) -> anyhow::Result<bool> {
Expand Down

0 comments on commit 21c5123

Please sign in to comment.