From 3ed814e68e27bfaf2e67980796a224c317ee1b24 Mon Sep 17 00:00:00 2001 From: Deepak Mahakale Date: Fri, 21 May 2021 11:57:20 +0530 Subject: [PATCH] Fixes #279 - Add uniq to avoid duplications of checks --- lib/pre-commit/plugins_list.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/pre-commit/plugins_list.rb b/lib/pre-commit/plugins_list.rb index f179cb7..3613387 100644 --- a/lib/pre-commit/plugins_list.rb +++ b/lib/pre-commit/plugins_list.rb @@ -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