diff options
Diffstat (limited to 'whisper/whisperv2/filter.go')
-rw-r--r-- | whisper/whisperv2/filter.go | 5 |
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. |