Skip to content

Commit

Permalink
[load]staticcheck: SA1006
Browse files Browse the repository at this point in the history
commit_hash:1613e64efe07ef20173c6968353993b281f072ab
  • Loading branch information
torkve committed Dec 13, 2024
1 parent 020a568 commit a817a38
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/zaputil/stack_extract_core_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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())

Expand Down

0 comments on commit a817a38

Please sign in to comment.