Skip to content

Commit ffdfd56

Browse files
committed
Small formatting cleanup for omniauth controller
1 parent cdfe8fd commit ffdfd56

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

app/controllers/users/omniauth_callbacks_controller.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -51,9 +51,8 @@ def handle_omniauth_for_signed_in_user(user, scheme)
5151
value: request.env['omniauth.auth'].uid,
5252
attrs: request.env['omniauth.auth'],
5353
identifiable: current_user)
54-
flash[:notice] =
55-
format(_('Your account has been successfully linked to %{scheme}.'),
56-
scheme: scheme.description)
54+
flash[:notice] = format(_('Your account has been successfully linked to %{scheme}.'),
55+
scheme: scheme.description)
5756

5857
else
5958
flash[:alert] = format(_('Unable to link your account to %{scheme}.'),
@@ -63,9 +62,8 @@ def handle_omniauth_for_signed_in_user(user, scheme)
6362
elsif user.id != current_user.id
6463
# If a user was found but does NOT match the current user then the identifier has
6564
# already been attached to another account (likely the user has 2 accounts)
66-
# rubocop:disable Layout/LineLength
67-
flash[:alert] = _("The current #{scheme.description} iD has been already linked to a user with email #{identifier.user.email}")
68-
# rubocop:enable Layout/LineLength
65+
flash[:alert] = _("The current #{scheme.description} iD has been already linked " \
66+
"to a user with email #{identifier.user.email}")
6967
end
7068

7169
# Redirect to the User Profile page

0 commit comments

Comments
 (0)