Skip to content

Commit 84bff88

Browse files
committed
replace ioutil.TempDir with os.MkdirTemp
1 parent 6f1b7bd commit 84bff88

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

boilingcore/boilingcore_test.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import (
44
"bufio"
55
"bytes"
66
"fmt"
7-
"io/ioutil"
87
"os"
98
"os/exec"
109
"path/filepath"
@@ -62,7 +61,7 @@ func testNew(t *testing.T, aliases Aliases) {
6261
}
6362

6463
var err error
65-
out, err := ioutil.TempDir("", "boil_templates")
64+
out, err := os.MkdirTemp("", "boil_templates")
6665
if err != nil {
6766
t.Fatalf("unable to create tempdir: %s", err)
6867
}

0 commit comments

Comments
 (0)