Skip to content

Commit

Permalink
de-duplicated locations
Browse files Browse the repository at this point in the history
  • Loading branch information
quangngd committed Jan 31, 2025
1 parent 965a59c commit 5936333
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ defmodule Credo.Check.Consistency.UnusedVariableNames.Collector do

source_file
|> Credo.Code.prewalk(&traverse(location_recorder, &1, &2), [])
|> Enum.uniq()
|> Enum.reverse()
end

Expand Down

0 comments on commit 5936333

Please sign in to comment.