Skip to content

Commit

Permalink
Merge pull request #438 from projectdiscovery/maint-kind
Browse files Browse the repository at this point in the history
Update errors.go
  • Loading branch information
Mzack9999 authored Jun 11, 2024
2 parents 603f854 + 3ae5506 commit 0e2f2d3
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions errkit/errors.go
Original file line number Diff line number Diff line change
Expand Up @@ -186,6 +186,11 @@ func (e *ErrorX) SetKind(kind ErrKind) *ErrorX {
return e
}

func (e *ErrorX) ResetKind() *ErrorX {
e.kind = nil
return e
}

// SetAttr sets additional attributes to a given error
// it only adds unique attributes and ignores duplicates
// Note: only key is checked for uniqueness
Expand Down

0 comments on commit 0e2f2d3

Please sign in to comment.