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.

Silence unnecessary log (#22750)

Conrad Irwin92b9d8054936
diff --git a/crates/project/src/buffer_store.rs b/crates/project/src/buffer_store.rs
index e5e0ce85a27..5e42ebc0820 100644
--- a/crates/project/src/buffer_store.rs
+++ b/crates/project/src/buffer_store.rs
@@ -404,7 +404,7 @@ impl LocalBufferStore {
cx: &AppContext,
) -> Task<Result<Option<String>>> {
let Some(file) = buffer.read(cx).file() else {
- return Task::ready(Err(anyhow!("buffer has no file")));
+ return Task::ready(Ok(None));
};
let worktree_id = file.worktree_id(cx);
let path = file.path().clone();