From 79ab77facd8b4d7ea39257f85d37f094f52770d2 Mon Sep 17 00:00:00 2001 From: deadprogram Date: Sat, 16 Aug 2025 17:01:21 +0200 Subject: [PATCH] fix: correct linter issues exposed by the fix in #4679 Signed-off-by: deadprogram --- compiler/llvmutil/llvm.go | 2 +- src/os/file_unix.go | 1 - src/reflect/value.go | 4 ++-- 3 files changed, 3 insertions(+), 4 deletions(-) diff --git a/compiler/llvmutil/llvm.go b/compiler/llvmutil/llvm.go index 061bee6c9..9295c4409 100644 --- a/compiler/llvmutil/llvm.go +++ b/compiler/llvmutil/llvm.go @@ -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-") { diff --git a/src/os/file_unix.go b/src/os/file_unix.go index 9dc3a91e0..17d26e166 100644 --- a/src/os/file_unix.go +++ b/src/os/file_unix.go @@ -12,7 +12,6 @@ package os import ( "io" "syscall" - _ "unsafe" ) const DevNull = "/dev/null" diff --git a/src/reflect/value.go b/src/reflect/value.go index cf186c2ce..a7e4787c6 100644 --- a/src/reflect/value.go +++ b/src/reflect/value.go @@ -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) {