aboutsummaryrefslogtreecommitdiffstats
path: root/whisper/whisperv2/filter.go
diff options
context:
space:
mode:
Diffstat (limited to 'whisper/whisperv2/filter.go')
-rw-r--r--whisper/whisperv2/filter.go5
1 files changed, 1 insertions, 4 deletions
diff --git a/whisper/whisperv2/filter.go b/whisper/whisperv2/filter.go
index ed7dcd6ae..7404859b7 100644
--- a/whisper/whisperv2/filter.go
+++ b/whisper/whisperv2/filter.go
@@ -120,10 +120,7 @@ func (self filterer) Compare(f filter.Filter) bool {
break
}
}
- if !self.matcher.Matches(topics) {
- return false
- }
- return true
+ return self.matcher.Matches(topics)
}
// Trigger is called when a filter successfully matches an inbound message.