From 9fe938ff0d2b9e1f36c43bd54cfc010fbf56a966 Mon Sep 17 00:00:00 2001 From: Emmanuel T Odeke Date: Fri, 25 Oct 2024 02:32:28 -0700 Subject: [PATCH] Apply ridiculous golangci-lint suggestion --- fuzz_test.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/fuzz_test.go b/fuzz_test.go index 94c8f80..db5f7aa 100644 --- a/fuzz_test.go +++ b/fuzz_test.go @@ -12,7 +12,8 @@ import ( var dirPath = filepath.Join("testdata", "corpra", "builder") func init() { - if err := os.MkdirAll(dirPath, 0755); err != nil { + var err error + if err = os.MkdirAll(dirPath, 0755); err != nil { panic(err) } }