diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-04 18:10:36 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-05-04 18:10:36 +0300 |
commit | be4b3134a282f7a8812306777abd2d3150deecdc (patch) | |
tree | 0563327ce590b415047686c6feff43496742b49a /app/services/users/update_canonical_email_service.rb | |
parent | 998adcc422d4161515bf2960ef4dce71258f69a3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/services/users/update_canonical_email_service.rb')
-rw-r--r-- | app/services/users/update_canonical_email_service.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/services/users/update_canonical_email_service.rb b/app/services/users/update_canonical_email_service.rb index e75452f60fd..c4b7a98f60b 100644 --- a/app/services/users/update_canonical_email_service.rb +++ b/app/services/users/update_canonical_email_service.rb @@ -7,7 +7,7 @@ module Users INCLUDED_DOMAINS_PATTERN = [/gmail.com/].freeze def initialize(user:) - raise ArgumentError.new("Please provide a user") unless user.is_a?(User) + raise ArgumentError, "Please provide a user" unless user.is_a?(User) @user = user end |