File tree Expand file tree Collapse file tree 1 file changed +1
-12
lines changed
Expand file tree Collapse file tree 1 file changed +1
-12
lines changed Original file line number Diff line number Diff line change @@ -263,8 +263,6 @@ impl Visit for CjsVisitor {
263263 AssignTarget :: Simple ( SimpleAssignTarget :: Ident ( left_ident) ) => {
264264 if is_exports_ident ( & left_ident. id ) {
265265 self . visit_exports_right_expr ( & assign_expr. right ) ;
266- } else if let Some ( right_expr) = assign_expr. right . as_assign ( ) {
267- self . visit_assign_expr ( right_expr) ;
268266 }
269267 }
270268 AssignTarget :: Simple ( SimpleAssignTarget :: Member ( left_member) ) => {
@@ -276,9 +274,6 @@ impl Visit for CjsVisitor {
276274 // * `exports.something = other`
277275 if let Some ( prop_name) = get_member_prop_text ( & left_member. prop ) {
278276 self . add_export ( prop_name) ;
279- if let Some ( right_expr) = assign_expr. right . as_assign ( ) {
280- self . visit_assign_expr ( right_expr) ;
281- }
282277 } else if let Some ( right_member) = assign_expr. right . as_member ( ) {
283278 // check for:
284279 // * `exports[key] = _something[key];
@@ -291,15 +286,9 @@ impl Visit for CjsVisitor {
291286 self . add_reexport ( & require_value) ;
292287 }
293288 }
294- } else if let Some ( right_expr) = assign_expr. right . as_assign ( ) {
295- self . visit_assign_expr ( right_expr) ;
296- }
297- }
298- _ => {
299- if let Some ( right_expr) = assign_expr. right . as_assign ( ) {
300- self . visit_assign_expr ( right_expr) ;
301289 }
302290 }
291+ _ => { }
303292 }
304293
305294 assign_expr. visit_children_with ( self ) ;
You can’t perform that action at this time.
0 commit comments