mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-07-26 06:38:42 +00:00
fix: correct linter issues exposed by the fix in #4679
Signed-off-by: deadprogram <ron@hybridgroup.com>
This commit is contained in:
@@ -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-") {
|
||||
|
||||
@@ -12,7 +12,6 @@ package os
|
||||
import (
|
||||
"io"
|
||||
"syscall"
|
||||
_ "unsafe"
|
||||
)
|
||||
|
||||
const DevNull = "/dev/null"
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user