From a817a383b8c864bd219fe05cce2837ba9dab4f47 Mon Sep 17 00:00:00 2001 From: torkve Date: Fri, 13 Dec 2024 10:39:03 +0300 Subject: [PATCH] [load]staticcheck: SA1006 commit_hash:1613e64efe07ef20173c6968353993b281f072ab --- lib/zaputil/stack_extract_core_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/zaputil/stack_extract_core_test.go b/lib/zaputil/stack_extract_core_test.go index d5c26a41e..8720dd5c2 100644 --- a/lib/zaputil/stack_extract_core_test.go +++ b/lib/zaputil/stack_extract_core_test.go @@ -81,7 +81,7 @@ func Test_StackExtractCore(t *testing.T) { t.Run("stack in with", func(t *testing.T) { const sampleErrMsg = "stacked error msg" - sampleCause := fmt.Errorf(sampleErrMsg) + sampleCause := errors.New(sampleErrMsg) sampleErr := errors.WithStack(sampleCause) sampleStack := fmt.Sprintf("%+v", sampleErr.(stackedErr).StackTrace())