From da4bad3a55bb00c57979f390445461923d9f9ae6 Mon Sep 17 00:00:00 2001 From: Danilo Leal <67129314+danilo-leal@users.noreply.github.com> Date: Wed, 5 Feb 2025 12:28:44 -0300 Subject: [PATCH] edit prediction: Don't log an error if license file isn't found (#24278) Logging an error in this case isn't super necessary. Release Notes: - N/A Co-authored-by: Bennet Bo Fenner <53836821+bennetbo@users.noreply.github.com> --- crates/zeta/src/zeta.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/crates/zeta/src/zeta.rs b/crates/zeta/src/zeta.rs index 584e4a8bb88a7c9744d4bfaee3bdc23d8002c66d..0be88b3c6a93a2e30fb1c331379da474e3996022 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; };