lib/coffeelint.rb in coffeelint-0.0.4 vs lib/coffeelint.rb in coffeelint-0.0.5
- old
+ new
@@ -22,10 +22,10 @@
def self.lint_dir(directory)
retval = {}
Dir.glob("#{directory}/**/*.coffee") do |name|
retval[name] = Coffeelint.lint_file(name)
- yield name, retval[name]
+ yield name, retval[name] if block_given?
end
retval
end
def self.display_test_results(name, errors)