Rubocop redundant return fix

This commit is contained in:
Penar Musaraj 2019-11-14 15:08:57 -05:00
parent 0206827e30
commit b00dce0684
1 changed files with 1 additions and 1 deletions

View File

@ -97,7 +97,7 @@ class OAuth2BasicAuthenticator < Auth::ManagedAuthenticator
deref = fragment[0] # Take just the first array for now, maybe later we can teach it to walk the array if we need to deref = fragment[0] # Take just the first array for now, maybe later we can teach it to walk the array if we need to
end end
return (deref.blank? || segments.size == 1) ? deref : walk_path(deref, segments[1..-1]) (deref.blank? || segments.size == 1) ? deref : walk_path(deref, segments[1..-1])
end end
def json_walk(result, user_json, prop) def json_walk(result, user_json, prop)