Fix new rubocop warnings
This commit is contained in:
parent
4eb2e318af
commit
ff3a30d245
2 changed files with 2 additions and 2 deletions
|
@ -308,7 +308,7 @@ module Api
|
|||
# low, second is high - same as with bounding boxes.
|
||||
|
||||
# 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
|
||||
|
||||
from, to = times.collect { |t| Time.parse(t) }
|
||||
|
|
|
@ -14,7 +14,7 @@ class BoundingBox
|
|||
end
|
||||
|
||||
def self.from_s(s)
|
||||
BoundingBox.new(*s.split(/,/)) if s.count(",") == 3
|
||||
BoundingBox.new(*s.split(",")) if s.count(",") == 3
|
||||
end
|
||||
|
||||
def self.from_bbox_params(params)
|
||||
|
|
Loading…
Add table
Reference in a new issue