]> git.openstreetmap.org Git - rails.git/blobdiff - lib/daemons/gpx_import.rb
Localisation updates from https://translatewiki.net.
[rails.git] / lib / daemons / gpx_import.rb
index 3679aa448b9bdd2bcb52b0e84b342c3e8810e7f1..a0344b58c95f9495c35537fbfcbddd49b900dff7 100755 (executable)
@@ -20,10 +20,10 @@ loop do
     begin
       gpx = trace.import
 
-      if gpx.actual_points > 0
+      if gpx.actual_points.positive?
         Notifier.gpx_success(trace, gpx.actual_points).deliver
       else
-        Notifier.gpx_failure(trace, '0 points parsed ok. Do they all have lat,lng,alt,timestamp?').deliver
+        Notifier.gpx_failure(trace, "0 points parsed ok. Do they all have lat,lng,alt,timestamp?").deliver
         trace.destroy
       end
     rescue StandardError => ex