Skip to content

Commit c8cf7a3

Browse files
committed
Fix compilation errors
1 parent 60217c7 commit c8cf7a3

File tree

3 files changed

+2
-3
lines changed

3 files changed

+2
-3
lines changed

src/cmd/compile/internal/ssa/fmahash_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ package ssa_test
66

77
import (
88
"internal/testenv"
9-
"os"
109
"path/filepath"
1110
"regexp"
1211
"runtime"

src/cmd/compile/internal/test/fixedbugs_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ func TestIssue16214(t *testing.T) {
6161
dir := t.TempDir()
6262

6363
src := filepath.Join(dir, "x.go")
64-
err = os.WriteFile(src, []byte(issue16214src), 0644)
64+
err := os.WriteFile(src, []byte(issue16214src), 0644)
6565
if err != nil {
6666
t.Fatalf("could not write file: %v", err)
6767
}

src/cmd/compile/internal/test/ssa_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ func runGenTest(t *testing.T, filename, tmpname string, ev ...string) {
3434
}
3535
// Write stdout into a temporary file
3636
rungo := filepath.Join(t.TempDir(), "run.go")
37-
ok = os.WriteFile(rungo, stdout.Bytes(), 0600)
37+
ok := os.WriteFile(rungo, stdout.Bytes(), 0600)
3838
if ok != nil {
3939
t.Fatalf("Failed to create temporary file " + rungo)
4040
}

0 commit comments

Comments
 (0)