]> git.openstreetmap.org Git - rails.git/blobdiff - lib/gpx.rb
Fix warnings from rubocop update
[rails.git] / lib / gpx.rb
index 9b93f07f2b5909929abdee3a49a1bbccd80857a4..f1c82cf926748de5db42a890bfafac0e446fb31e 100644 (file)
@@ -150,11 +150,11 @@ module GPX
 
   private
 
 
   private
 
-  class TrkPt < Struct.new(:segment, :latitude, :longitude, :altitude, :timestamp)
+  TrkPt = Struct.new(:segment, :latitude, :longitude, :altitude, :timestamp) do
     def valid?
       latitude && longitude && timestamp &&
     def valid?
       latitude && longitude && timestamp &&
-        latitude >= -90 && latitude <= 90 &&
-        longitude >= -180 && longitude <= 180
+      latitude >= -90 && latitude <= 90 &&
+      longitude >= -180 && longitude <= 180
     end
   end
 end
     end
   end
 end