Skip to content

Commit

Permalink
Ensure blank lines aren't reported as uncovered, related issue #444
Browse files Browse the repository at this point in the history
  • Loading branch information
Miloshes committed Mar 10, 2016
1 parent ea2176e commit e0a14d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/simplecov/merge_helpers.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ module ArrayMergeHelper
def merge_resultset(array)
new_array = dup
array.each_with_index do |element, i|
if element.nil? && new_array[i].nil?
if element.nil? || new_array[i].nil?
new_array[i] = nil
else
local_value = element || 0
Expand Down

0 comments on commit e0a14d7

Please sign in to comment.