refactor: fix lint error (#161)

This commit is contained in:
maskpp
2022-12-13 21:23:24 +08:00
committed by GitHub
parent 450ff4b51f
commit 5a51d7d3f0

View File

@@ -1,7 +1,6 @@
package store
import (
"io/ioutil"
"os"
"path/filepath"
"strconv"
@@ -14,7 +13,7 @@ import (
func TestStack(t *testing.T) {
// Create temp path
path, err := ioutil.TempDir("/tmp/", "stack_db_test-")
path, err := os.MkdirTemp("/tmp/", "stack_db_test-")
assert.NoError(t, err)
defer os.RemoveAll(path)