Skip to content

Commit a96de9c

Browse files
committed
Clippy lint: use more expressive is_empty() to check for it
1 parent c591839 commit a96de9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

swc/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ impl VisitMut for TransformVisitor {
110110
fn visit_mut_call_expr(&mut self, call_expr: &mut CallExpr) {
111111
// Skip entire execution if no import call was found
112112
// @see visit_mut_import_decl
113-
if self.local_indents.len() == 0 {
113+
if self.local_indents.is_empty() {
114114
return;
115115
}
116116
call_expr.visit_mut_children_with(self);

0 commit comments

Comments
 (0)