]> git.openstreetmap.org Git - rails.git/commitdiff
Drop non-functional check for nil email
authorTom Hughes <tom@compton.nu>
Sat, 2 Sep 2023 10:51:43 +0000 (11:51 +0100)
committerTom Hughes <tom@compton.nu>
Sat, 2 Sep 2023 10:51:43 +0000 (11:51 +0100)
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!(/\+.*$/, "")