summaryrefslogtreecommitdiff
path: root/lib/bitbucket_server/paginator.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/bitbucket_server/paginator.rb')
-rw-r--r--lib/bitbucket_server/paginator.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bitbucket_server/paginator.rb b/lib/bitbucket_server/paginator.rb
index 9eda1c921b2..8a494379864 100644
--- a/lib/bitbucket_server/paginator.rb
+++ b/lib/bitbucket_server/paginator.rb
@@ -36,7 +36,7 @@ module BitbucketServer
def over_limit?
return false unless @limit
- @limit.positive? && @total >= @limit
+ @limit > 0 && @total >= @limit
end
def next_offset