Skip to content

Commit 85b9ab2

Browse files
committed
refactor: skipping rest of iteration on underscore not used
1 parent 62ec329 commit 85b9ab2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/refactorex/refactor/variable/underscore_not_used.ex

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ defmodule Refactorex.Refactor.Variable.UnderscoreNotUsed do
1717
{_declaration, _usages} ->
1818
false
1919
end)
20+
|> then(&if &1, do: true, else: :skip)
2021
end
2122

2223
def refactor(%{node: node} = zipper, line) do

0 commit comments

Comments
 (0)