From 0df48d7e7d6fe83abe41f7276f1ba864ae99439c Mon Sep 17 00:00:00 2001 From: JC Dansereau Date: Mon, 22 Apr 2024 14:55:53 -0400 Subject: [PATCH] goarch: remove variable shadowing in gengoarch --- src/internal/goarch/gengoarch.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/internal/goarch/gengoarch.go b/src/internal/goarch/gengoarch.go index 0b0be5cd157..1094fdd52bc 100644 --- a/src/internal/goarch/gengoarch.go +++ b/src/internal/goarch/gengoarch.go @@ -52,7 +52,7 @@ func main() { } fmt.Fprintf(&buf, "const Is%s = %d\n", strings.Title(goarch), value) } - err := os.WriteFile("zgoarch_"+target+".go", buf.Bytes(), 0666) + err = os.WriteFile("zgoarch_"+target+".go", buf.Bytes(), 0666) if err != nil { log.Fatal(err) }