diff options
Diffstat (limited to 'app/services/ci/runners/set_runner_associated_projects_service.rb')
-rw-r--r-- | app/services/ci/runners/set_runner_associated_projects_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/ci/runners/set_runner_associated_projects_service.rb b/app/services/ci/runners/set_runner_associated_projects_service.rb index 7930776749d..5e33fdae2f4 100644 --- a/app/services/ci/runners/set_runner_associated_projects_service.rb +++ b/app/services/ci/runners/set_runner_associated_projects_service.rb @@ -17,7 +17,7 @@ module Ci return ServiceResponse.error(message: 'user not allowed to assign runner', http_status: :forbidden) end - return ServiceResponse.success if project_ids.blank? + return ServiceResponse.success if project_ids.nil? set_associated_projects end |