Navigation Menu

Skip to content

Commit

Permalink
DEV: simpler Dangerfile logic (#6911)
Browse files Browse the repository at this point in the history
  • Loading branch information
jjaffeux committed Jan 21, 2019
1 parent 426907c commit 6f0bc16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Dangerfile
Expand Up @@ -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 = []

Expand Down

0 comments on commit 6f0bc16

Please sign in to comment.