Commit 89aff8e0 authored by Rémy Coutable's avatar Rémy Coutable

Fix syntax error due to latest Rubocop-related change

Signed-off-by: default avatarRémy Coutable <remy@rymai.me>
parent 0ca22789
......@@ -50,7 +50,12 @@ module Gitlab
return false unless Gitlab::Geo.secondary?
self.cache_value(:geo_oauth_application) do
Gitlab::Geo.current_node.oauth_application || raise OauthApplicationUndefinedError
geo_app = Gitlab::Geo.current_node.oauth_application
if geo_app
geo_app
else
raise OauthApplicationUndefinedError
end
end
end
......
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