]> git.openstreetmap.org Git - rails.git/blobdiff - lib/classic_pagination/pagination.rb
Fix new rubocop warnings
[rails.git] / lib / classic_pagination / pagination.rb
index 328237d52b35ef3222b4656a6496b70deb0d376c..054b2bb34e080bf9f50c7f2ed4513d8178d85e01 100644 (file)
@@ -316,6 +316,7 @@ module ActionController
         # same page number).
         def ==(other)
           return false if other.nil?
+
           @paginator == other.paginator &&
             @number == other.number
         end
@@ -326,6 +327,7 @@ module ActionController
         # if the pages do not belong to the same Paginator object.
         def <=>(other)
           raise ArgumentError unless @paginator == other.paginator
+
           @number <=> other.number
         end