projects
/
rails.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
431ff96
)
Drop non-functional check for nil email
author
Tom Hughes
<tom@compton.nu>
Sat, 2 Sep 2023 10:51:43 +0000
(11:51 +0100)
committer
Tom Hughes
<tom@compton.nu>
Sat, 2 Sep 2023 10:51:43 +0000
(11:51 +0100)
app/controllers/concerns/email_methods.rb
patch
|
blob
|
history
diff --git
a/app/controllers/concerns/email_methods.rb
b/app/controllers/concerns/email_methods.rb
index 471a61e6aafb052ba9bea9346a1045666f4e2fbc..f25b7917ebc5af719947181aa465c052d7dce4f4 100644
(file)
--- 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!(/\+.*$/, "")