go vet: unreachable code

This commit fixes all occurrences of the abovementioned lint-error in
the codebase.

Signed-off-by: Moritz Poldrack <git@moritz.sh>
Acked-by: Robin Jarry <robin@jarry.cc>
This commit is contained in:
Moritz Poldrack 2022-03-18 09:53:03 +01:00 committed by Robin Jarry
parent e30bd324a3
commit 22d65d5759
1 changed files with 0 additions and 5 deletions

View File

@ -206,11 +206,6 @@ func (t *threadable) MessageThreadReferences() []string {
func (t *threadable) Subject() string { func (t *threadable) Subject() string {
// deactivate threading by subject for now // deactivate threading by subject for now
return "" return ""
if t.IsDummy() || t.MsgInfo == nil || t.MsgInfo.Envelope == nil {
return ""
}
return t.MsgInfo.Envelope.Subject
} }
func (t *threadable) SimplifiedSubject() string { func (t *threadable) SimplifiedSubject() string {