Skip to content

Commit

Permalink
replace ioutil.TempDir with os.MkdirTemp
Browse files Browse the repository at this point in the history
  • Loading branch information
stefafafan committed Nov 17, 2022
1 parent 6f1b7bd commit 84bff88
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions boilingcore/boilingcore_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"bufio"
"bytes"
"fmt"
"io/ioutil"
"os"
"os/exec"
"path/filepath"
Expand Down Expand Up @@ -62,7 +61,7 @@ func testNew(t *testing.T, aliases Aliases) {
}

var err error
out, err := ioutil.TempDir("", "boil_templates")
out, err := os.MkdirTemp("", "boil_templates")
if err != nil {
t.Fatalf("unable to create tempdir: %s", err)
}
Expand Down

0 comments on commit 84bff88

Please sign in to comment.