diff --git a/crates/collab_ui/src/branch_list.rs b/crates/collab_ui/src/branch_list.rs index eb6b9c6f54..2d014cc1b9 100644 --- a/crates/collab_ui/src/branch_list.rs +++ b/crates/collab_ui/src/branch_list.rs @@ -153,7 +153,7 @@ impl PickerDelegate for BranchListDelegate { .unwrap() .lock() .change_branch(¤t_pick); - if let Err(err) = &status { + if status.is_err() { const GIT_CHECKOUT_FAILURE_ID: usize = 2048; self.workspace.update(cx, |model, ctx| { model.show_toast(