We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ada6f8 commit cf412a4Copy full SHA for cf412a4
crates/oxc_linter/src/lib.rs
@@ -233,8 +233,8 @@ impl Linter {
233
path: &Path,
234
ctx_host: &ContextHost,
235
) {
236
- // TODO: Error or `unwrap` instead of `return`?
237
- let Some(external_linter) = &self.external_linter else { return };
+ // `external_linter` always exists when `oxlint2` feature is enabled
+ let external_linter = self.external_linter.as_ref().unwrap();
238
239
let result = (external_linter.run)(
240
path.to_str().unwrap().to_string(),
0 commit comments