Skip to content

Commit

Permalink
Store the result after each check.
Browse files Browse the repository at this point in the history
  • Loading branch information
jish committed Aug 25, 2014
1 parent b02f779 commit 33d14e5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/pre-commit/runner.rb
Expand Up @@ -41,8 +41,9 @@ def show_output(name, list)
def execute(list)
list.map do |cmd|
result = nil

seconds = Benchmark.realtime do
cmd.new(pluginator, config, list).call(staged_files.dup)
result = cmd.new(pluginator, config, list).call(staged_files.dup)
end

puts "#{cmd} #{seconds*1000}ms" if debug
Expand Down

0 comments on commit 33d14e5

Please sign in to comment.