summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 16:15:09 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2019-10-17 16:15:09 +0000
commit7a44f38c2c19654f1f6796f4143baf2837153e59 (patch)
tree0ad4730e5d449a8b57c845afb72aef13a8653872
parentc66df09e23ac21f9e657d78874dfd82ee6d0e8b5 (diff)
downloadredmine-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
-rw-r--r--.rubocop_todo.yml1
-rw-r--r--lib/redmine/export/pdf/issues_pdf_helper.rb8
2 files changed, 2 insertions, 7 deletions
diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml
index 674f50920..38ddef746 100644
--- a/.rubocop_todo.yml
+++ b/.rubocop_todo.yml
@@ -1482,7 +1482,6 @@ Style/WhileUntilModifier:
- 'app/helpers/queries_helper.rb'
- 'app/models/attachment.rb'
- 'app/models/project.rb'
- - 'lib/redmine/export/pdf/issues_pdf_helper.rb'
- 'lib/redmine/unified_diff.rb'
- 'lib/redmine/utils.rb'
- 'lib/redmine/wiki_formatting/textile/redcloth3.rb'
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