Skip to content

Commit 0662200

Browse files
author
Stephan Dilly
committed
fix regression in async diff (introduced in 546c7f3)
1 parent 6482c81 commit 0662200

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

asyncgit/src/diff.rs

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -120,11 +120,12 @@ impl AsyncDiff {
120120
hash,
121121
);
122122

123-
let notify = if let Err(err) = notify {
124-
log::error!("get_diff_helper error: {}", err);
125-
true
126-
} else {
127-
false
123+
let notify = match notify {
124+
Err(err) => {
125+
log::error!("get_diff_helper error: {}", err);
126+
true
127+
}
128+
Ok(notify) => notify,
128129
};
129130

130131
arc_pending.fetch_sub(1, Ordering::Relaxed);

0 commit comments

Comments
 (0)