]> git.openstreetmap.org Git - rails.git/blobdiff - lib/gpx.rb
Fix new rubocop warnings
[rails.git] / lib / gpx.rb
index 1a1d0b99659aa8be2f0c09c80a56cb877da2aac8..d0607233a2d7f4f108ce35f0b86122c71956a0c3 100644 (file)
@@ -37,7 +37,7 @@ module GPX
     end
 
     def points(&block)
-      return enum_for(:points) unless block_given?
+      return enum_for(:points) unless block
 
       @possible_points = 0
       @actual_points = 0