lib/helpers/lint_ware.rb in jscop-0.1.2 vs lib/helpers/lint_ware.rb in jscop-0.1.3
- old
+ new
@@ -29,10 +29,10 @@
end
def self.init_dir_linting(error_bin, path)
if CheckJsFiles.find_dir(path)
files = CheckJsFiles.seek_js(path)
- files.each { |file| start_all(error_bin, file) } if files
+ files.each { |file| start_all(error_bin, file) } && files
else
CheckJsFiles.find_dir(path)
end
end
end