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.

Align return of close_active_item to match original format

Mikayla Makiaa2af53f5609
diff --git a/crates/workspace/src/pane.rs b/crates/workspace/src/pane.rs
index 089618ea205..a120523131a 100644
--- a/crates/workspace/src/pane.rs
+++ b/crates/workspace/src/pane.rs
@@ -787,7 +787,7 @@ impl Pane {
let pane = pane_handle.read(cx);
if pane.items.is_empty() {
- return Some(Task::Ready(Some(Ok(()))));
+ return None;
}
let active_item_id = pane.items[pane.active_item_index].id();