Skip to content

Commit

Permalink
error: Harmonize receiver types.
Browse files Browse the repository at this point in the history
  • Loading branch information
creachadair committed May 16, 2021
1 parent 5b6bbf0 commit fe12a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion error.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ func (e Error) Error() string { return fmt.Sprintf("[%d] %s", e.Code, e.Message)
func (e Error) HasData() bool { return len(e.Data) != 0 }

// ErrCode trivially satisfies the code.ErrCoder interface for an *Error.
func (e *Error) ErrCode() code.Code { return e.Code }
func (e Error) ErrCode() code.Code { return e.Code }

// UnmarshalData decodes the error data associated with e into v. It reports
// ErrNoData without modifying v if there was no data message attached to e.
Expand Down

0 comments on commit fe12a92

Please sign in to comment.