From 06622008da9a4e0ba5ebfea2c3ea4d8b98a37f28 Mon Sep 17 00:00:00 2001 From: Stephan Dilly Date: Wed, 24 Feb 2021 22:15:10 +0100 Subject: [PATCH] fix regression in async diff (introduced in 546c7f3) --- asyncgit/src/diff.rs | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/asyncgit/src/diff.rs b/asyncgit/src/diff.rs index 8298c996..3fce7ce5 100644 --- a/asyncgit/src/diff.rs +++ b/asyncgit/src/diff.rs @@ -120,11 +120,12 @@ impl AsyncDiff { hash, ); - let notify = if let Err(err) = notify { - log::error!("get_diff_helper error: {}", err); - true - } else { - false + let notify = match notify { + Err(err) => { + log::error!("get_diff_helper error: {}", err); + true + } + Ok(notify) => notify, }; arc_pending.fetch_sub(1, Ordering::Relaxed);