Skip to content

Commit

Permalink
style(main): fixed clippy warning #1409
Browse files Browse the repository at this point in the history
  • Loading branch information
hitenkoku committed Sep 19, 2024
1 parent 1dd8c0d commit c875c0d
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -541,11 +541,7 @@ impl App {
_ => None,
};
// エラーが出た場合はインターネット接続がそもそもできないなどの問題点もあるためエラー等の出力は行わない
let latest_version_data = if let Ok(data) = Update::get_latest_hayabusa_version() {
data
} else {
None
};
let latest_version_data = Update::get_latest_hayabusa_version().unwrap_or_default();
let now_version = &format!("v{}", env!("CARGO_PKG_VERSION"));
stored_static.include_status.insert("*".into());
match Update::update_rules(update_target.unwrap().to_str().unwrap(), stored_static)
Expand Down

0 comments on commit c875c0d

Please sign in to comment.