summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--app/services/auth/container_registry_authentication_service.rb1
-rw-r--r--spec/services/auth/container_registry_authentication_service_spec.rb4
2 files changed, 1 insertions, 4 deletions
diff --git a/app/services/auth/container_registry_authentication_service.rb b/app/services/auth/container_registry_authentication_service.rb
index 0de7009e339..2410443ebb6 100644
--- a/app/services/auth/container_registry_authentication_service.rb
+++ b/app/services/auth/container_registry_authentication_service.rb
@@ -62,7 +62,6 @@ module Auth
return { type: type, name: name, actions: ['*'] }
end
-
return unless type == 'repository'
process_repository_access(type, path, actions)
diff --git a/spec/services/auth/container_registry_authentication_service_spec.rb b/spec/services/auth/container_registry_authentication_service_spec.rb
index 6145f72df43..b154779e1c7 100644
--- a/spec/services/auth/container_registry_authentication_service_spec.rb
+++ b/spec/services/auth/container_registry_authentication_service_spec.rb
@@ -140,9 +140,7 @@ describe Auth::ContainerRegistryAuthenticationService do
it_behaves_like 'not a container repository factory'
end
end
-
-
-
+
context 'for private project' do
let(:project) { create(:project) }