Fix warning about unused variable

This commit is contained in:
Piotr Osiewicz 2023-06-29 12:57:49 +02:00
parent 1eb0f3d091
commit d000ea9739

View file

@ -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(