diff options
author | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-04-12 19:15:15 +0300 |
---|---|---|
committer | Jacob Vosmaer <contact@jacobvosmaer.nl> | 2016-04-12 19:15:15 +0300 |
commit | 525ab25ac81a6b81cca56d3cba403ab2a5f372eb (patch) | |
tree | b75bf78592a53a02bc84081011c816a96a4ad379 /app/workers | |
parent | 3170e5d226ee107409b4345b827519da64ba967e (diff) |
Changes suggested by Robert
Diffstat (limited to 'app/workers')
-rw-r--r-- | app/workers/repository_check_worker.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/workers/repository_check_worker.rb b/app/workers/repository_check_worker.rb index 017f49de08c..bdacdd4c6b0 100644 --- a/app/workers/repository_check_worker.rb +++ b/app/workers/repository_check_worker.rb @@ -17,7 +17,7 @@ class RepositoryCheckWorker break if Time.now - start >= RUN_TIME break unless current_settings.repository_checks_enabled - next if !try_obtain_lease(project_id) + next unless try_obtain_lease(project_id) SingleRepositoryCheckWorker.new.perform(project_id) end |