mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-21 21:09:02 +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 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.
|
// endian, but for example MIPS can be big-endian.
|
||||||
func ByteOrder(target string) binary.ByteOrder {
|
func ByteOrder(target string) binary.ByteOrder {
|
||||||
if strings.HasPrefix(target, "mips-") {
|
if strings.HasPrefix(target, "mips-") {
|
||||||
|
|||||||
@@ -12,7 +12,6 @@ package os
|
|||||||
import (
|
import (
|
||||||
"io"
|
"io"
|
||||||
"syscall"
|
"syscall"
|
||||||
_ "unsafe"
|
|
||||||
)
|
)
|
||||||
|
|
||||||
const DevNull = "/dev/null"
|
const DevNull = "/dev/null"
|
||||||
|
|||||||
@@ -81,8 +81,8 @@ func (it *MapIter) Next() bool {
|
|||||||
return ((*reflectlite.MapIter)(it)).Next()
|
return ((*reflectlite.MapIter)(it)).Next()
|
||||||
}
|
}
|
||||||
|
|
||||||
func (iter *MapIter) Reset(v Value) {
|
func (it *MapIter) Reset(v Value) {
|
||||||
(*reflectlite.MapIter)(iter).Reset(v.Value)
|
(*reflectlite.MapIter)(it).Reset(v.Value)
|
||||||
}
|
}
|
||||||
|
|
||||||
func (v Value) Set(x Value) {
|
func (v Value) Set(x Value) {
|
||||||
|
|||||||
Reference in New Issue
Block a user