cleanup comparison (thanks staticcheck)
All checks were successful
Go / build (1.21) (push) Successful in 1m8s
Go / build (1.22) (push) Successful in 1m7s

This commit is contained in:
saji 2024-03-07 23:52:41 -06:00
parent 90e8c3f101
commit d702395d5b

View file

@ -146,10 +146,7 @@ func (e *BusEvent) Equals(other *BusEvent) bool {
} }
pkt1, _ := e.Data.MarshalPacket() pkt1, _ := e.Data.MarshalPacket()
pkt2, _ := e.Data.MarshalPacket() pkt2, _ := e.Data.MarshalPacket()
if !bytes.Equal(pkt1, pkt2) { return bytes.Equal(pkt1, pkt2)
return false
}
return true
} }
// we need to be able to parse the JSON as well. this is done using the // we need to be able to parse the JSON as well. this is done using the