all: upgrade to golangci-lint v1.49.0 (#329)

Fixes #242
This commit is contained in:
Michael McLoughlin
2022-09-05 17:25:03 -07:00
committed by GitHub
parent d76a0f6dd6
commit e788b7675f
9 changed files with 433 additions and 436 deletions

View File

@@ -4,7 +4,6 @@ package test
import (
"flag"
"io"
"io/ioutil"
"log"
"os"
"os/exec"
@@ -32,7 +31,7 @@ func Assembles(t *testing.T, asm []byte) {
defer clean()
asmfilename := filepath.Join(dir, "asm.s")
if err := ioutil.WriteFile(asmfilename, asm, 0o600); err != nil {
if err := os.WriteFile(asmfilename, asm, 0o600); err != nil {
t.Fatal(err)
}
@@ -46,7 +45,7 @@ func Assembles(t *testing.T, asm []byte) {
func TempDir(t *testing.T) (string, func()) {
t.Helper()
dir, err := ioutil.TempDir("", "avo")
dir, err := os.MkdirTemp("", "avo")
if err != nil {
t.Fatal(err)
}