diff options
author | Go MAEDA <maeda@farend.jp> | 2023-01-02 06:10:53 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2023-01-02 06:10:53 +0000 |
commit | 21ca0e3d0a87f688a641466f27cccc79c64e4d6d (patch) | |
tree | 077e1626157c308df8609681f46489e75bf0b0b1 /lib/redmine/pagination.rb | |
parent | 1481c721a222ccf05a43ae98d1cf7730314a13d5 (diff) | |
download | redmine-21ca0e3d0a87f688a641466f27cccc79c64e4d6d.tar.gz redmine-21ca0e3d0a87f688a641466f27cccc79c64e4d6d.zip |
Fix RuboCop offense Style/MinMaxComparison (#36919).
git-svn-id: https://svn.redmine.org/redmine/trunk@22019 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redmine/pagination.rb')
-rw-r--r-- | lib/redmine/pagination.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/redmine/pagination.rb b/lib/redmine/pagination.rb index 42c15d65e..d9d889201 100644 --- a/lib/redmine/pagination.rb +++ b/lib/redmine/pagination.rb @@ -77,7 +77,7 @@ module Redmine def last_item l = first_item + per_page - 1 - l > item_count ? item_count : l + [l, item_count].min end def linked_pages |