diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 16:15:09 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2019-10-17 16:15:09 +0000 |
commit | 7a44f38c2c19654f1f6796f4143baf2837153e59 (patch) | |
tree | 0ad4730e5d449a8b57c845afb72aef13a8653872 /lib | |
parent | c66df09e23ac21f9e657d78874dfd82ee6d0e8b5 (diff) | |
download | redmine-7a44f38c2c19654f1f6796f4143baf2837153e59.tar.gz redmine-7a44f38c2c19654f1f6796f4143baf2837153e59.zip |
code cleanup: rubocop: fix Style/WhileUntilModifier in lib/redmine/export/pdf/issues_pdf_helper.rb
git-svn-id: http://svn.redmine.org/redmine/trunk@18717 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib')
-rw-r--r-- | lib/redmine/export/pdf/issues_pdf_helper.rb | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/lib/redmine/export/pdf/issues_pdf_helper.rb b/lib/redmine/export/pdf/issues_pdf_helper.rb index 8b1e59ae2..41a9b0c19 100644 --- a/lib/redmine/export/pdf/issues_pdf_helper.rb +++ b/lib/redmine/export/pdf/issues_pdf_helper.rb @@ -61,12 +61,8 @@ module Redmine right << [l(:label_spent_time), l_hours(issue.total_spent_hours)] if User.current.allowed_to?(:view_time_entries, issue.project) rows = left.size > right.size ? left.size : right.size - while left.size < rows - left << nil - end - while right.size < rows - right << nil - end + left << nil while left.size < rows + right << nil while right.size < rows custom_field_values = issue.visible_custom_field_values.reject {|value| value.custom_field.full_width_layout?} half = (custom_field_values.size / 2.0).ceil |