X-Git-Url: https://git.openstreetmap.org./rails.git/blobdiff_plain/431ff96b66d361b24c36253ed274bf63644be802..3d79f9fd88ab2784b292c8eafc46070472b2a4c9:/app/controllers/concerns/email_methods.rb 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!(/\+.*$/, "")