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.

edit prediction: Don't log an error if license file isn't found (#24278)

Danilo Lealda4bad3a55bb
diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rs
index 584e4a8bb88..0be88b3c6a9 100644
--- a/crates/zeta/src/zeta.rs
+++ b/crates/zeta/src/zeta.rs
@@ -958,8 +958,7 @@ impl LicenseDetectionWatcher {
Self {
is_open_source_rx,
_is_open_source_task: cx.spawn(|_, _| async move {
- // TODO: Don't display error if file not found
- let Some(loaded_file) = loaded_file_fut.await.log_err() else {
+ let Ok(loaded_file) = loaded_file_fut.await else {
return;
};