rubocop autocorrect: Favor a normal if-statement
This commit is contained in:
parent
37ed189b2e
commit
35bef89588
|
@ -267,10 +267,12 @@ module Google
|
||||||
# Redirect URI
|
# Redirect URI
|
||||||
def redirect_uri_for(base_url)
|
def redirect_uri_for(base_url)
|
||||||
return @callback_uri unless URI(@callback_uri).scheme.nil?
|
return @callback_uri unless URI(@callback_uri).scheme.nil?
|
||||||
|
if base_url.nil? || URI(base_url).scheme.nil?
|
||||||
raise sprintf(
|
raise sprintf(
|
||||||
MISSING_ABSOLUTE_URL_ERROR,
|
MISSING_ABSOLUTE_URL_ERROR,
|
||||||
@callback_uri
|
@callback_uri
|
||||||
) if base_url.nil? || URI(base_url).scheme.nil?
|
)
|
||||||
|
end
|
||||||
URI.join(base_url, @callback_uri).to_s
|
URI.join(base_url, @callback_uri).to_s
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue