lib/fakeredis/geo_commands.rb in fakeredis-0.9.0 vs lib/fakeredis/geo_commands.rb in fakeredis-0.9.1
- old
+ new
@@ -72,10 +72,10 @@
end
def georadiusbymember(*args)
args = args.dup
raise_argument_error("georadiusbymember") if args.size < 4
- key, member, radius, unit, *rest = args
+ key, member, radius, unit, *_ = args
raise_argument_error("georadiusbymember") unless DISTANCE_UNITS.has_key?(unit)
radius *= DISTANCE_UNITS[unit]
set = (data[key] || GeoSet.new)
center = set.get(member)