Permalink
Browse files

Remove wrong comments

  • Loading branch information...
1 parent 438285c commit a67bbca7f4d680a5d38b35de5753d9ad4052dd0a @chrismcg committed Jun 11, 2012
Showing with 3 additions and 3 deletions.
  1. +3 −3 lib/yamldiff/yamldiff.rb
View
@@ -20,13 +20,13 @@ def compare_hashes(first, second, context = [])
first.each do |key, value|
unless second.key?(key)
- errors << YamldiffKeyError.new(key, context) # "Missing key : #{key} in path #{context.join(".")}"
+ errors << YamldiffKeyError.new(key, context)
next
end
value2 = second[key]
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
end
@@ -36,7 +36,7 @@ def compare_hashes(first, second, context = [])
end
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

0 comments on commit a67bbca

Please sign in to comment.