Skip to content

Commit

Permalink
ignore deprecation warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Weber committed Oct 1, 2024
1 parent 933f6d8 commit 35c2c9d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions group.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import (
// It first calls the Errors function.
func ErrorCodes(err error) []ErrorCode {
errorCodes := make([]ErrorCode, 0)
//nolint:staticcheck
errors.WalkDeep(err, func(err error) bool {
if errcode, ok := err.(ErrorCode); ok {
// avoid duplicating codes
Expand Down

0 comments on commit 35c2c9d

Please sign in to comment.