lib/overcommit/plugins/pre_commit/haml_syntax.rb in overcommit-0.1.7 vs lib/overcommit/plugins/pre_commit/haml_syntax.rb in overcommit-0.1.8

- old
+ new

@@ -8,16 +8,17 @@ require 'haml' rescue LoadError return :warn, "'haml' gem not installed -- run `gem install haml`" end - staged.each do |path| + staged.map { |s| s.path }.each do |path| begin Haml::Engine.new(File.read(path), :check_syntax => true) rescue Haml::Error => e return :bad, e.message end end - return :good, nil + + :good end end end