]> git.openstreetmap.org Git - rails.git/blobdiff - lib/gpx.rb
Fix rubocop style issues
[rails.git] / lib / gpx.rb
index ae9af0d46f1139e02dde2123acc690d49abe13e8..5a61b344a007b5eb07f3189750c2a7ae21674396 100644 (file)
@@ -94,9 +94,7 @@ module GPX
         end
 
         m += 1
-        if m > num_points.to_f / frames.to_f * (mm + 1)
-          mm += 1
-        end
+        mm += 1 if m > num_points.to_f / frames.to_f * (mm + 1)
 
         oldpy = py
         oldpx = px