cleanup comparison (thanks staticcheck)
This commit is contained in:
parent
90e8c3f101
commit
d702395d5b
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue