Skip to content

Commit 067bbff

Browse files
committed
fix: simplify condition
1 parent 87f0aaf commit 067bbff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

router.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ func (r *router) matchAndDispatch(messages <-chan *packets.PublishPacket, order
210210
}()
211211
}
212212
} else {
213-
if !order || len(handlers) == 0 {
213+
if len(handlers) == 0 {
214214
DEBUG.Println(ROU, "matchAndDispatch received message and no handler was available. Message will NOT be acknowledged.")
215215
}
216216
}

0 commit comments

Comments
 (0)