fix: correct linter issues exposed by the fix in #4679

Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
deadprogram
2025-08-16 17:01:21 +02:00
committed by Ron Evans
parent 2c99692019
commit 79ab77facd
3 changed files with 3 additions and 4 deletions
+1 -1
View File
@@ -218,7 +218,7 @@ func Version() int {
return major
}
// Return the byte order for the given target triple. Most targets are little
// ByteOrder returns the byte order for the given target triple. Most targets are little
// endian, but for example MIPS can be big-endian.
func ByteOrder(target string) binary.ByteOrder {
if strings.HasPrefix(target, "mips-") {
-1
View File
@@ -12,7 +12,6 @@ package os
import (
"io"
"syscall"
_ "unsafe"
)
const DevNull = "/dev/null"
+2 -2
View File
@@ -81,8 +81,8 @@ func (it *MapIter) Next() bool {
return ((*reflectlite.MapIter)(it)).Next()
}
func (iter *MapIter) Reset(v Value) {
(*reflectlite.MapIter)(iter).Reset(v.Value)
func (it *MapIter) Reset(v Value) {
(*reflectlite.MapIter)(it).Reset(v.Value)
}
func (v Value) Set(x Value) {