lib/deepstream/list.rb in deepstream-0.3.0 vs lib/deepstream/list.rb in deepstream-0.3.1
- old
+ new
@@ -19,10 +19,10 @@
def read(version, data)
@version = version.to_i
data = JSON.parse(data)
if data.is_a?(Array)
@data.concat(data).uniq!
- set(@data) if @data.size > data.size
+ set if @data.size > data.size
end
end
def remove(record_name)
set if @data.delete(record_name)