summaryrefslogtreecommitdiff
path: root/lib/threadbuilder.go
diff options
context:
space:
mode:
authorMoritz Poldrack <git@moritz.sh>2022-03-18 09:53:03 +0100
committerRobin Jarry <robin@jarry.cc>2022-03-18 13:33:21 +0100
commit22d65d5759ccb612456183ff28fe185bc495eac2 (patch)
tree6806b314bbd023de495c425b051e46742173b73b /lib/threadbuilder.go
parente30bd324a3552fae3089110d39b61ddced66ddee (diff)
downloadaerc-22d65d5759ccb612456183ff28fe185bc495eac2.zip
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>
Diffstat (limited to 'lib/threadbuilder.go')
-rw-r--r--lib/threadbuilder.go5
1 files changed, 0 insertions, 5 deletions
diff --git a/lib/threadbuilder.go b/lib/threadbuilder.go
index 9607f1c..8ffb7c1 100644
--- a/lib/threadbuilder.go
+++ b/lib/threadbuilder.go
@@ -206,11 +206,6 @@ func (t *threadable) MessageThreadReferences() []string {
func (t *threadable) Subject() string {
// deactivate threading by subject for now
return ""
-
- if t.IsDummy() || t.MsgInfo == nil || t.MsgInfo.Envelope == nil {
- return ""
- }
- return t.MsgInfo.Envelope.Subject
}
func (t *threadable) SimplifiedSubject() string {