Skip to content

Commit

Permalink
Fix rubocop warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
bjrne committed Aug 28, 2017
1 parent 1df80dc commit aae7ae5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/controllers/users/omniauth_callbacks_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@ class Users::OmniauthCallbacksController < Devise::OmniauthCallbacksController
skip_before_action :verify_authenticity_token, only: :hpiopenid

def hpiopenid
if request.env["omniauth.auth"].info.email.to_s.empty?
return redirect_to user_session_path, :alert => I18n.t('users.openid.missing_email')
if request.env['omniauth.auth'].info.email.to_s.empty?
return redirect_to user_session_path, alert: I18n.t('users.openid.missing_email')
end
@user = User.from_omniauth(request.env['omniauth.auth'])
if @user.persisted?
Expand Down

0 comments on commit aae7ae5

Please sign in to comment.