lib/fakeredis/strings.rb in fakeredis-0.1.2 vs lib/fakeredis/strings.rb in fakeredis-0.1.3
- old
+ new
@@ -32,10 +32,9 @@
return unless @data[key]
@data[key][start..ending]
end
def getset(key, value)
- return unless @data[key]
old_value = @data[key]
@data[key] = value
return old_value
end