Skip to content

Commit 2c28bd7

Browse files
committed
Rubocop fixes
1 parent e6f76c2 commit 2c28bd7

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

app/controllers/better_together/omniauth_callbacks_controller.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ def github
1818
private
1919

2020
def verify_oauth_state
21-
if params[:state] != session[:oauth_state]
22-
flash[:alert] = 'Invalid OAuth state parameter'
23-
redirect_to new_user_registration_path
24-
end
21+
return unless params[:state] != session[:oauth_state]
22+
23+
flash[:alert] = 'Invalid OAuth state parameter'
24+
redirect_to new_user_registration_path
2525
end
2626

2727
def handle_auth(kind) # rubocop:todo Metrics/AbcSize

0 commit comments

Comments
 (0)