Skip to content

Commit

Permalink
unwrapping will handle this already
Browse files Browse the repository at this point in the history
  • Loading branch information
Greg Weber committed Jun 25, 2024
1 parent c502105 commit b672ac8
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions structured.go
Original file line number Diff line number Diff line change
Expand Up @@ -43,18 +43,6 @@ func (se structuredErr) Unwrap() error { return se.err }
func (se structuredErr) ErrorNoUnwrap() string { return se.msg }
func (se structuredErr) HasStack() bool { return true }

// This interface is used by the errcode package
type hasClientData interface {
GetClientData() interface{}
}

func (se structuredErr) GetClientData() interface{} {
if cd, ok := se.err.(hasClientData); ok {
return cd.GetClientData()
}
return nil
}

func (se structuredErr) Format(s fmt.State, verb rune) {
switch verb {
case 'v':
Expand Down

0 comments on commit b672ac8

Please sign in to comment.