Fix new rubocop warnings

This commit is contained in:
Tom Hughes 2021-03-02 08:24:15 +00:00
parent 4eb2e318af
commit ff3a30d245
2 changed files with 2 additions and 2 deletions

View file

@ -308,7 +308,7 @@ module Api
# low, second is high - same as with bounding boxes. # low, second is high - same as with bounding boxes.
# check that we actually have 2 elements in the array # check that we actually have 2 elements in the array
times = time.split(/,/) times = time.split(",")
raise OSM::APIBadUserInput, "bad time range" if times.size != 2 raise OSM::APIBadUserInput, "bad time range" if times.size != 2
from, to = times.collect { |t| Time.parse(t) } from, to = times.collect { |t| Time.parse(t) }

View file

@ -14,7 +14,7 @@ class BoundingBox
end end
def self.from_s(s) def self.from_s(s)
BoundingBox.new(*s.split(/,/)) if s.count(",") == 3 BoundingBox.new(*s.split(",")) if s.count(",") == 3
end end
def self.from_bbox_params(params) def self.from_bbox_params(params)