Show warnings only for DEV build

This commit is contained in:
Adam Stankiewicz
2020-09-28 00:43:36 +02:00
parent 63369f98ef
commit 312e95099d
4 changed files with 14 additions and 2 deletions

View File

@@ -726,6 +726,9 @@ def process_list(list, extras)
end
def show_warnings(all_filetypes, expected_filetypes)
if !ENV["DEV"]
return
end
all_expected = process_list(expected_filetypes, false) do |f|
(f["extensions"] || []).map { |e| "*." + e } + (f["filenames"] || [])
end