From 5896eae2782af2ba4d1fabb7cc7cf43249f6fa26 Mon Sep 17 00:00:00 2001 From: Jared O'Connell Date: Thu, 22 Aug 2024 13:54:23 -0400 Subject: [PATCH] Inline variable --- loadfile/loadfile_test.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/loadfile/loadfile_test.go b/loadfile/loadfile_test.go index e2f3e16..ecb575a 100644 --- a/loadfile/loadfile_test.go +++ b/loadfile/loadfile_test.go @@ -21,8 +21,7 @@ func Test_LoadContext(t *testing.T) { assert.NoError(t, os.MkdirAll(testdir, os.ModePerm)) // create a directory - dirPrefix := "mydir" - dirPath, err := os.MkdirTemp(testdir, dirPrefix) + dirPath, err := os.MkdirTemp(testdir, "mydir") assert.NoError(t, err) // create a file