mirror of
https://github.com/sheerun/vim-polyglot.git
synced 2025-11-08 11:33:52 -05:00
Show warnings only for DEV build
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user