Apply go fix modernizations
This commit is contained in:
@@ -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")
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user