chore: pin GH commits and switch to golangci-lint (#4444)

* chore: pin GH commits

* switch to golangci-lint-action

* fix lint issues
This commit is contained in:
David Zhao
2026-04-11 13:04:22 -07:00
committed by GitHub
parent 2974ba879f
commit 4b3856125c
37 changed files with 127 additions and 108 deletions
+2 -4
View File
@@ -66,10 +66,8 @@ func (d *DataTrackRemote) PacketReceived(packet *datatrack.Packet) {
return
}
valid := true
if len(packet.Payload) == 0 {
valid = false
}
valid := len(packet.Payload) != 0
for i := range packet.Payload {
if packet.Payload[i] != byte(255-i) {
valid = false