X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/baf10cd39289cd7e94a819305e46f43e85a136c6..5cbd4038edb32b0304bd766e70fc680ea447b52b:/lib/bounding_box.rb diff --git a/lib/bounding_box.rb b/lib/bounding_box.rb index e78434263..a8ae1d99c 100644 --- a/lib/bounding_box.rb +++ b/lib/bounding_box.rb @@ -16,11 +16,7 @@ class BoundingBox end def self.from_s(s) - if s.count(',') == 3 - BoundingBox.new(*s.split(/,/)) - else - nil - end + BoundingBox.new(*s.split(/,/)) if s.count(',') == 3 end def self.from_bbox_params(params)