]> git.openstreetmap.org Git - rails.git/blobdiff - lib/short_link.rb
Fix rubocop style issues
[rails.git] / lib / short_link.rb
index 0d8f21cadf643b63b4900f227b5c1092980958bb..44b9d719df39fd77477a5243a3d3f5f8bb885ea0 100644 (file)
@@ -30,8 +30,13 @@ module ShortLink
         z_offset -= 1
       else
         3.times do
-          x <<= 1; x |= 1 unless (t & 32).zero?; t <<= 1
-          y <<= 1; y |= 1 unless (t & 32).zero?; t <<= 1
+          x <<= 1
+          x |= 1 unless (t & 32).zero?
+          t <<= 1
+
+          y <<= 1
+          y |= 1 unless (t & 32).zero?
+          t <<= 1
         end
         z += 3
       end