lib/pre-commit/checks/js_check.rb in pre-commit-0.1.14 vs lib/pre-commit/checks/js_check.rb in pre-commit-0.1.15

- old
+ new

@@ -17,10 +17,10 @@ def run(js_files) errors = [] js_files.each do |file| - error_list = run_check(file) + error_list = Array(run_check(file)) error_list.each { |error_object| errors << display_error(error_object, file) } end if errors.empty? true