diff --git a/crates/oxc_linter/src/context.rs b/crates/oxc_linter/src/context.rs index 5064dcc7407fd..156e6cf50de88 100644 --- a/crates/oxc_linter/src/context.rs +++ b/crates/oxc_linter/src/context.rs @@ -137,7 +137,7 @@ impl<'a> LintContext<'a> { } pub fn env_contains_var(&self, var: &str) -> bool { - if GLOBALS["builtin"].contains_key("var") { + if GLOBALS["builtin"].contains_key(var) { return true; } for env in self.env().iter() {