From d702395d5b15359f7f71b4950686e1bbb6109449 Mon Sep 17 00:00:00 2001 From: saji Date: Thu, 7 Mar 2024 23:52:41 -0600 Subject: [PATCH] cleanup comparison (thanks staticcheck) --- skylab/skylab.go | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/skylab/skylab.go b/skylab/skylab.go index ba7051e..c313a2f 100644 --- a/skylab/skylab.go +++ b/skylab/skylab.go @@ -146,10 +146,7 @@ func (e *BusEvent) Equals(other *BusEvent) bool { } pkt1, _ := e.Data.MarshalPacket() pkt2, _ := e.Data.MarshalPacket() - if !bytes.Equal(pkt1, pkt2) { - return false - } - return true + return bytes.Equal(pkt1, pkt2) } // we need to be able to parse the JSON as well. this is done using the