diff --git a/.rubocop.yml b/.rubocop.yml index c8a71cbc2..3decd1775 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -281,5 +281,3 @@ Lint/Loop: Enabled: false Style/For: Enabled: false -Style/WhileUntilDo: - Enabled: false diff --git a/lib/time_calculation.rb b/lib/time_calculation.rb index e8666860e..8dbb030a8 100644 --- a/lib/time_calculation.rb +++ b/lib/time_calculation.rb @@ -137,7 +137,7 @@ put working hours matrix and timezone in function, returns UTC working hours mat count = 0 calculation = true first_loop = true - while calculation do + while calculation week_day = start_time.wday day = start_time.day month = start_time.month @@ -257,7 +257,7 @@ put working hours matrix and timezone in function, returns UTC working hours mat count = diff_in_min * 60 calculation = true first_loop = true - while calculation do + while calculation week_day = start_time.wday day = start_time.day month = start_time.month