File tree Expand file tree Collapse file tree 1 file changed +6
-10
lines changed
crates/swc_ecma_transforms_base/src/rename Expand file tree Collapse file tree 1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -243,15 +243,13 @@ where
243
243
244
244
self . unresolved = self . get_unresolved ( m, has_eval) ;
245
245
246
+ let map = self . get_map ( m, false , true , has_eval) ;
247
+
246
248
if has_eval {
247
249
m. visit_mut_children_with ( self ) ;
248
250
}
249
251
250
- {
251
- let map = self . get_map ( m, false , true , has_eval) ;
252
-
253
- m. visit_mut_with ( & mut rename_with_config ( & map, self . config . clone ( ) ) ) ;
254
- }
252
+ m. visit_mut_with ( & mut rename_with_config ( & map, self . config . clone ( ) ) ) ;
255
253
}
256
254
257
255
fn visit_mut_script ( & mut self , m : & mut Script ) {
@@ -261,15 +259,13 @@ where
261
259
262
260
self . unresolved = self . get_unresolved ( m, has_eval) ;
263
261
262
+ let map = self . get_map ( m, false , true , has_eval) ;
263
+
264
264
if has_eval {
265
265
m. visit_mut_children_with ( self ) ;
266
266
}
267
267
268
- {
269
- let map = self . get_map ( m, false , true , has_eval) ;
270
-
271
- m. visit_mut_with ( & mut rename_with_config ( & map, self . config . clone ( ) ) ) ;
272
- }
268
+ m. visit_mut_with ( & mut rename_with_config ( & map, self . config . clone ( ) ) ) ;
273
269
}
274
270
}
275
271
You can’t perform that action at this time.
0 commit comments