lib/relaton/index/file_io.rb in relaton-index-0.2.7 vs lib/relaton/index/file_io.rb in relaton-index-0.2.8
- old
+ new
@@ -90,10 +90,10 @@
return true if @id_keys.empty?
keys = index.each_with_object(Set.new) do |item, acc|
acc.merge item[:id].keys if item[:id].is_a?(Hash)
end
- keys == @id_keys.to_set
+ keys.none? { |k| !@id_keys.include? k }
end
#
# Read index from storage
#