diff --git a/src/ameba/runner.cr b/src/ameba/runner.cr index 2f8ee72b..6023fcd6 100644 --- a/src/ameba/runner.cr +++ b/src/ameba/runner.cr @@ -88,8 +88,7 @@ module Ameba @formatter.started @sources channels = @sources.map { Channel(Exception?).new } - @sources.each_with_index do |source, idx| - channel = channels[idx] + @sources.zip(channels).each do |source, channel| spawn do run_source(source) rescue e