X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/f5c20527aa76aa6758e4f84e82b8ba82b9599adc..98b4d62462040deb0d3564808917f69cc723c3a3:/app/controllers/concerns/email_methods.rb?ds=sidebyside diff --git a/app/controllers/concerns/email_methods.rb b/app/controllers/concerns/email_methods.rb index 471a61e6a..f25b7917e 100644 --- a/app/controllers/concerns/email_methods.rb +++ b/app/controllers/concerns/email_methods.rb @@ -4,11 +4,7 @@ module EmailMethods private def canonical_email(email) - local_part, domain = if email.nil? - nil - else - email.split("@") - end + local_part, domain = email.split("@") local_part.sub!(/\+.*$/, "")