Skip to content

Commit ba7d754

Browse files
committed
review from the past
1 parent faa7bc8 commit ba7d754

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

app/controllers/api/google_auth_controller.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,9 +46,9 @@ def response_error_message
4646
end
4747

4848
def google_token_params
49-
params.require(:google_auth).require(:code)
50-
params.require(:google_auth).require(:redirect_uri)
51-
params.expect(google_auth: %i[code redirect_uri])
49+
google_auth_params = params.expect(google_auth: %i[code redirect_uri])
50+
google_auth_params.require(%i[code redirect_uri])
51+
google_auth_params
5252
end
5353
end
5454
end

0 commit comments

Comments
 (0)