remove warning

This commit is contained in:
Toshit Chawda 2024-10-20 17:47:56 -07:00
parent 6e0db0a1d3
commit 81cbfa3ae0
No known key found for this signature in database
GPG key ID: 91480ED99E2B3D9D

View file

@ -133,7 +133,7 @@ impl<'a> Visit<'a> for Rewriter {
if !self.config.strict_rewrites if !self.config.strict_rewrites
&& !UNSAFE_GLOBALS.contains(&s.property.name.as_str()) && !UNSAFE_GLOBALS.contains(&s.property.name.as_str())
{ {
if let Expression::Identifier(i) = &s.object { if let Expression::Identifier(_) = &s.object {
// cull tree - this should be safe // cull tree - this should be safe
return; return;
} }