Skip to content

chore: fix typos in httperror.go#2958

Open
tisonkun wants to merge 1 commit intolabstack:masterfrom
tisonkun:fix-typos
Open

chore: fix typos in httperror.go#2958
tisonkun wants to merge 1 commit intolabstack:masterfrom
tisonkun:fix-typos

Conversation

@tisonkun
Copy link
Copy Markdown

No description provided.

Signed-off-by: tison <wander4096@gmail.com>
Comment thread httperror.go
// Wrap eturns new HTTPError with given errors wrapped inside
func (he HTTPError) Wrap(err error) error {
// Wrap returns a new HTTPError with given errors wrapped inside
func (he *HTTPError) Wrap(err error) error {
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a non-trivial change but it keeps all receivers as pointer receivers. Or else my linter would report:

Struct HTTPError has methods on both value and pointer receivers. Such usage is not recommended by the Go Documentation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant