Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Fix warning about unused variable

Piotr Osiewiczd000ea97398d
diff --git a/crates/collab_ui/src/branch_list.rs b/crates/collab_ui/src/branch_list.rs
index eb6b9c6f540..2d014cc1b93 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(&current_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(