1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2025-01-21 13:00:36 -05:00
This commit is contained in:
Bartek Iwańczuk 2025-01-14 15:04:45 +01:00
parent a8c647e0ec
commit 1b7ed4d990
No known key found for this signature in database
GPG key ID: 0C6BCDDC3B3AD750
2 changed files with 2 additions and 2 deletions

View file

@ -392,6 +392,6 @@ impl ExternalLinterContainer {
}
pub fn take_error(&self) -> Option<AnyError> {
self.error.as_ref().map(|e| e.lock().take()).flatten()
self.error.as_ref().and_then(|e| e.lock().take())
}
}

View file

@ -57,7 +57,7 @@ impl LintReporter for PrettyLintReporter {
log::error!("Error linting: {file_path}");
if let Some(core_err) = err.downcast_ref::<CoreError>() {
if let CoreError::Js(js_error) = core_err {
log::error!(" {}", format_js_error(&js_error));
log::error!(" {}", format_js_error(js_error));
return;
}
}