Taking a bunch of go modernize suggestions. (#4194)

This is not all of it as it is not possible (or at least I do not know
of a way) to get all suggestions for a repo/project. Did this via loop
searching mainly and taking the modernize suggestions.
This commit is contained in:
Raja Subramanian
2025-12-25 16:55:58 +05:30
committed by GitHub
parent ed8e6afcd7
commit 2510b9462e
29 changed files with 70 additions and 71 deletions
+1 -1
View File
@@ -70,7 +70,7 @@ func (d *DataTrackRemote) PacketReceived(packet *datatrack.Packet) {
if len(packet.Payload) == 0 {
valid = false
}
for i := range len(packet.Payload) {
for i := range packet.Payload {
if packet.Payload[i] != byte(255-i) {
valid = false
break