Skip to content

Commit

Permalink
Remove wrong comments
Browse files Browse the repository at this point in the history
  • Loading branch information
chrismcg committed Jun 11, 2012
1 parent 438285c commit a67bbca
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions lib/yamldiff/yamldiff.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ def compare_hashes(first, second, context = [])


first.each do |key, value| first.each do |key, value|
unless second.key?(key) unless second.key?(key)
errors << YamldiffKeyError.new(key, context) # "Missing key : #{key} in path #{context.join(".")}" errors << YamldiffKeyError.new(key, context)
next next
end end


value2 = second[key] value2 = second[key]
if (value.class != value2.class) if (value.class != value2.class)
errors << YamldiffKeyValueTypeError.new(key, context) # "Key value type mismatch : #{key} in path #{context.join(".")}" errors << YamldiffKeyValueTypeError.new(key, context)
next next
end end


Expand All @@ -36,7 +36,7 @@ def compare_hashes(first, second, context = [])
end end


if (value != value2) if (value != value2)
errors << YamldiffKeyValueError.new(key, context, Diffy::Diff.new(value.to_s + "\n", value2.to_s + "\n")) # "Key value mismatch : #{key} in path #{context.join(".")}" errors << YamldiffKeyValueError.new(key, context, Diffy::Diff.new(value.to_s + "\n", value2.to_s + "\n"))
end end
end end


Expand Down

0 comments on commit a67bbca

Please sign in to comment.