Commit d8d35669 authored by Małgorzata Ksionek's avatar Małgorzata Ksionek

Add cr remarks

parent 0b9446e1
......@@ -3,6 +3,7 @@
module Gitlab
module Auth
Result = Struct.new(:actor, :project, :type, :authentication_abilities) do
self::EMPTY = self.new(nil, nil, nil, nil).freeze
def ci?(for_project)
type == :ci &&
project &&
......
......@@ -134,7 +134,7 @@ module Gitlab
end
def authentication_result(request, project)
empty_result = Gitlab::Auth::Result.new(nil, nil, nil, nil)
empty_result = Gitlab::Auth::Result::EMPTY
return empty_result unless has_basic_credentials?(request)
login, password = user_name_and_password(request)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment