From 0b1cf53fb947f7a84a211cb2eea24250dacb147b Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Sat, 2 Sep 2023 11:51:43 +0100 Subject: [PATCH] Drop non-functional check for nil email --- app/controllers/concerns/email_methods.rb | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) 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!(/\+.*$/, "") -- 2.39.5