Verified Commit 6d93ceb9 authored by Jordan Petridis's avatar Jordan Petridis 🌱

EpisodeWidget: Minor style change.

parent 9b0ac5b8
Pipeline #14357 passed with stages
in 21 minutes and 56 seconds
......@@ -511,11 +511,9 @@ fn progress_bar_helper(
// info!("Fraction: {}", fraction);
// Check if the download is still active
let active = {
let m = manager::ACTIVE_DOWNLOADS
.read()
.map_err(|_| format_err!("Failed to get a lock on the mutex."))?;
m.contains_key(&episode_rowid)
let active = match manager::ACTIVE_DOWNLOADS.read() {
Ok(guard) => guard.contains_key(&episode_rowid),
Err(_) => return Err(format_err!("Failed to get a lock on the mutex.")),
};
if (fraction >= 1.0) && (!fraction.is_nan()) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment