@@ -589,19 +589,7 @@ defmodule Igniter.Libs.Phoenix do
589589 case Igniter.Code.Function . move_to_function_call ( zipper , :use , 2 , fn zipper ->
590590 with { :ok , arg_zipper } <- Igniter.Code.Function . move_to_nth_argument ( zipper , 0 ) ,
591591 true <- Igniter.Code.Module . module? ( arg_zipper ) do
592- # Extract module name from the zipper node
593- module_name =
594- case arg_zipper
595- |> Igniter.Code.Common . maybe_move_to_single_child_block ( )
596- |> Igniter.Code.Common . expand_aliases ( )
597- |> Sourceror.Zipper . node ( ) do
598- { :__aliases__ , _ , parts } -> Module . concat ( parts )
599- value when is_atom ( value ) -> value
600- _ -> nil
601- end
602-
603- web_module? ( module_name ) &&
604- Igniter.Code.Function . argument_equals? ( zipper , 1 , :router )
592+ Igniter.Code.Function . argument_equals? ( zipper , 1 , :router )
605593 else
606594 _ -> false
607595 end
@@ -638,19 +626,7 @@ defmodule Igniter.Libs.Phoenix do
638626 Igniter.Code.Function . move_to_function_call ( zipper , :use , 2 , fn zipper ->
639627 with { :ok , arg_zipper } <- Igniter.Code.Function . move_to_nth_argument ( zipper , 0 ) ,
640628 true <- Igniter.Code.Module . module? ( arg_zipper ) do
641- # Extract module name from the zipper node
642- module_name =
643- case arg_zipper
644- |> Igniter.Code.Common . maybe_move_to_single_child_block ( )
645- |> Igniter.Code.Common . expand_aliases ( )
646- |> Sourceror.Zipper . node ( ) do
647- { :__aliases__ , _ , parts } -> Module . concat ( parts )
648- value when is_atom ( value ) -> value
649- _ -> nil
650- end
651-
652- web_module? ( module_name ) &&
653- Igniter.Code.Function . argument_equals? ( zipper , 1 , :router )
629+ Igniter.Code.Function . argument_equals? ( zipper , 1 , :router )
654630 else
655631 _ -> false
656632 end
0 commit comments