From 6f0bc16bafe24538609749a36d34873e25579829 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Mon, 21 Jan 2019 12:23:18 +0100 Subject: [PATCH] DEV: simpler Dangerfile logic (#6911) --- Dangerfile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Dangerfile b/Dangerfile index f1c779cb30..2f6e4c3071 100644 --- a/Dangerfile +++ b/Dangerfile @@ -19,8 +19,8 @@ if locales_changes.any? && has_non_en_locales_changes end files = (git.added_files + git.modified_files) - .reject! { |path| path.start_with?("plugins/") } - .reject! { |path| !(path.end_with?("es6") || path.end_with?("rb")) } + .select { |path| !path.start_with?("plugins/") } + .select { |path| path.end_with?("es6") || path.end_with?("rb") } super_offenses = []