瀏覽代碼

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
tags/4.1.0
Toshi MARUYAMA 4 年之前
父節點
當前提交
868578c0f2
共有 2 個文件被更改,包括 1 次插入4 次删除
  1. 0
    1
      .rubocop_todo.yml
  2. 1
    3
      lib/redmine/utils.rb

+ 0
- 1
.rubocop_todo.yml 查看文件

@@ -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.

+ 1
- 3
lib/redmine/utils.rb 查看文件

@@ -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


Loading…
取消
儲存