Skip to content

Commit

Permalink
Disable intrange
Browse files Browse the repository at this point in the history
  • Loading branch information
nisdas committed Jan 23, 2025
1 parent 46d2a4b commit 9fb1a14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ linters:
- gosec
- inamedparam
- interfacebloat
- intrange
- ireturn
- lll
- maintidx
Expand Down
2 changes: 1 addition & 1 deletion encoding/bytesutil/bytes.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ func PadTo(b []byte, size int) []byte {
func ReverseByteOrder(input []byte) []byte {
b := make([]byte, len(input))
copy(b, input)
for i := range len(b) / 2 {
for i := 0; i < len(b)/2; i++ {
b[i], b[len(b)-i-1] = b[len(b)-i-1], b[i]
}
return b
Expand Down

0 comments on commit 9fb1a14

Please sign in to comment.