Skip to content

Commit 1d64186

Browse files
committed
Flip logic the right way
1 parent dfe51b8 commit 1d64186

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/octocatalog-diff/util/parallel.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ def self.run_tasks_serial(result, task_array, logger)
151151
# will not be replaced (thereby being populated with the cancellation error).
152152
task_array.each_with_index do |ele, task_counter|
153153
result[task_counter] = execute_task(ele, logger)
154-
break unless result[task_counter].status
154+
next if result[task_counter].status
155155
raise result[task_counter].exception
156156
end
157157
end

0 commit comments

Comments
 (0)