Skip to content

Commit

Permalink
Remove nesting from if
Browse files Browse the repository at this point in the history
Signed-off-by: Tomasz Pietrek <tomasz@nats.io>
  • Loading branch information
Jarema committed Jan 18, 2023
1 parent ec7b0a8 commit 3a36f36
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions server/consumer.go
Expand Up @@ -3059,10 +3059,8 @@ func (o *consumer) isFilteredMatch(subj string) bool {
if subject.subject == _EMPTY_ {
return true
}
if !subject.hasWildcard {
if subj == subject.subject {
return true
}
if !subject.hasWildcard && subj == subject.subject {
return true
}
if subjectIsSubsetMatch(subj, subject.subject) {
return true
Expand Down

0 comments on commit 3a36f36

Please sign in to comment.