Skip to content

Commit

Permalink
fix linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jt-dd committed Oct 18, 2024
1 parent 340e819 commit 51cab17
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pkg/telemetry/log/fields.go
Original file line number Diff line number Diff line change
Expand Up @@ -250,13 +250,13 @@ func getStacktrace(err error) errors.StackTrace {
for index := 0; index < len(errorsToTest); index++ {
testedErr := errorsToTest[index]

if stackTracer, ok := testedErr.(stackTracer); ok { //nolint: errorlint
if stackTracer, ok := testedErr.(stackTracer); ok {
return stackTracer.StackTrace()
}

if joinErr, ok := testedErr.(UnwrapJoin); ok { //nolint: errorlint
if joinErr, ok := testedErr.(UnwrapJoin); ok {
errorsToTest = append(errorsToTest, joinErr.Unwrap()...)
} else if joinErr, ok := testedErr.(UnwrapMultierror); ok { //nolint: errorlint
} else if joinErr, ok := testedErr.(UnwrapMultierror); ok {
errorsToTest = append(errorsToTest, joinErr.WrappedErrors()...)
} else if unwrapped := errors.Unwrap(testedErr); unwrapped != nil {
errorsToTest = append(errorsToTest, unwrapped)
Expand Down

0 comments on commit 51cab17

Please sign in to comment.