Apply go fix modernizations

This commit is contained in:
Ian Gulliver
2026-03-05 11:39:14 -08:00
parent 9c2787a200
commit 8f83c1c8e9
4 changed files with 13 additions and 28 deletions

View File

@@ -60,10 +60,7 @@ func FuzzBuildParseRoundtrip(f *testing.F) {
if dataPkt.Universe != universe {
t.Fatalf("universe mismatch: sent %d, got %d", universe, dataPkt.Universe)
}
expectedLen := len(dmxInput)
if expectedLen > 512 {
expectedLen = 512
}
expectedLen := min(len(dmxInput), 512)
if !bytes.Equal(dataPkt.Data[:expectedLen], dmxInput[:expectedLen]) {
t.Fatalf("dmx data mismatch")
}