]> git.openstreetmap.org Git - rails.git/blobdiff - app/controllers/concerns/email_methods.rb
Show spinner using delayed css animation in sidebar loader
[rails.git] / app / controllers / concerns / email_methods.rb
index 471a61e6aafb052ba9bea9346a1045666f4e2fbc..f25b7917ebc5af719947181aa465c052d7dce4f4 100644 (file)
@@ -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!(/\+.*$/, "")