Fix some lint errors after move to golangci-lint

This commit is contained in:
Neil Twigg
2022-12-30 09:47:01 +00:00
parent 7042fc1638
commit 14d0ba1c65
20 changed files with 24 additions and 43 deletions

View File

@@ -3347,7 +3347,6 @@ func (c *client) mqttParseSubsOrUnsubs(r *mqttReader, b byte, pl int, sub bool)
filter, err := mqttFilterToNATSSubject(topic)
if err != nil {
c.Errorf("invalid topic %q: %v", topic, err)
err = nil
}
if sub {
qos, err = r.readByte("QoS")