Skip to content

Commit

Permalink
remove unused msg
Browse files Browse the repository at this point in the history
  • Loading branch information
MR2011 committed Sep 11, 2020
1 parent c04605b commit b4bd81f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/app.rs
Original file line number Diff line number Diff line change
Expand Up @@ -477,9 +477,9 @@ impl App {
pub fn update_all(&mut self) {
if self.tab_index == Tab::Installed {
let save_path = self.get_save_path();
let mut msg = "No addons found.".to_string();
let mut log_level = LogLevel::Warning;
for item in self.updates.clone().iter() {
let msg;
let log_level;
if let Err(err) = AddonManager::delete(&save_path, &item)
.and_then(|_| {
CurseForgeAPI::download(&item.download_url, &save_path)
Expand All @@ -501,8 +501,8 @@ impl App {
);
log_level = LogLevel::Info;
}
self.log(msg, log_level);
}
self.log(msg, log_level);
}
}

Expand Down

0 comments on commit b4bd81f

Please sign in to comment.