Skip to content

Commit

Permalink
fixup - test using NilClass
Browse files Browse the repository at this point in the history
  • Loading branch information
avbm committed Apr 8, 2021
1 parent 9ef1114 commit 49eba5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/octocatalog-diff/catalog-diff/differ.rb
Original file line number Diff line number Diff line change
Expand Up @@ -558,7 +558,7 @@ def hashdiff_initial(catalog1_in, catalog2_in)

# Added a new key that points to some kind of data structure that we know how
# to handle.
classes = [String, Integer, Float, TrueClass, FalseClass, Array, Hash, Nil]
classes = [String, Integer, Float, TrueClass, FalseClass, Array, Hash, NilClass]
if obj[1] =~ /^(.+)\f([^\f]+)$/ && OctocatalogDiff::Util::Util.object_is_any_of?(obj[2], classes)
hashdiff_add_remove.add(obj[1])
next
Expand Down

0 comments on commit 49eba5e

Please sign in to comment.