1
0
mirror of https://github.com/meineerde/redmine.git synced 2026-01-03 14:19:41 +00:00

code cleanup: rubocop: fix Style/WhileUntilModifier in lib/redmine/utils.rb

git-svn-id: http://svn.redmine.org/redmine/trunk@18760 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA 2019-10-19 11:16:06 +00:00
parent 163e6eb6f7
commit 868578c0f2
2 changed files with 1 additions and 4 deletions

View File

@ -1446,7 +1446,6 @@ Style/VariableInterpolation:
Style/WhileUntilModifier:
Exclude:
- 'app/models/attachment.rb'
- 'lib/redmine/utils.rb'
# Cop supports --auto-correct.
# Configuration parameters: EnforcedStyle, MinSize, WordRegex.

View File

@ -132,9 +132,7 @@ module Redmine
def next_working_date(date)
cwday = date.cwday
days = 0
while non_working_week_days.include?(((cwday + days - 1) % 7) + 1)
days += 1
end
days += 1 while non_working_week_days.include?(((cwday + days - 1) % 7) + 1)
date + days
end