remove duplications in utils.Mailbox
This commit is contained in:
parent
4b1ce195b4
commit
bf970fc699
1 changed files with 1 additions and 1 deletions
|
|
@ -11,7 +11,7 @@ func Mailbox(email string) string {
|
||||||
if index == -1 {
|
if index == -1 {
|
||||||
return email
|
return email
|
||||||
}
|
}
|
||||||
return email[:strings.LastIndex(email, "@")]
|
return email[:index]
|
||||||
}
|
}
|
||||||
|
|
||||||
// Hostname returns hostname part from email address
|
// Hostname returns hostname part from email address
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue