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>
This commit is contained in:
Danilo Leal 2025-02-05 12:28:44 -03:00 committed by GitHub
parent 630d0add19
commit da4bad3a55
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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;
};