From 7717f7fec76489e11d9e90db67b8be20aa7d414e Mon Sep 17 00:00:00 2001 From: Thorsten Eckel Date: Tue, 5 May 2015 12:09:00 +0200 Subject: [PATCH] Corrected with rubocop cop 'Style/WhileUntilDo'. --- .rubocop.yml | 2 -- lib/time_calculation.rb | 4 ++-- 2 files changed, 2 insertions(+), 4 deletions(-) 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