Skip to content

Commit

Permalink
Fixes jish#279 - Add uniq to avoid duplications of checks
Browse files Browse the repository at this point in the history
  • Loading branch information
deepakmahakale committed May 21, 2021
1 parent 176052d commit 3ed814e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/pre-commit/plugins_list.rb
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@ def initialize(configured_names, configured_remove, &block)
end

def evaluated_names
evaluated_names_(evaluated_names_pairs).flatten.compact
evaluated_names_(evaluated_names_pairs).flatten.compact.uniq
end

def list_to_run
list_to_run_(evaluated_names_pairs).flatten.compact
list_to_run_(evaluated_names_pairs).flatten.compact.uniq
end

private
Expand Down

0 comments on commit 3ed814e

Please sign in to comment.