]> git.openstreetmap.org Git - rails.git/blobdiff - lib/quad_tile.rb
Refactor the friend_users test, and remove the tests which duplicate the (renamed...
[rails.git] / lib / quad_tile.rb
index 8aee1b74a984670d80d58734b77af4ba24c0c397..347e7a8176b3e1190ed24c9acc716c735cd12db4 100644 (file)
@@ -72,7 +72,7 @@ module QuadTile
       end
     end
 
-    sql.push("#{prefix}tile IN (#{single.join(',')})") if single.size > 0
+    sql.push("#{prefix}tile IN (#{single.join(',')})") unless single.empty?
 
     "( " + sql.join(" OR ") + " )"
   end