Skip to content

Conversation

kveselkov
Copy link
Contributor

Fixed:

  1. mux.go:366:5: error var SkipRouter should have name of the form ErrFoo
  2. regexp.go:184:9: if block ends with a return statement, so drop this else and outdent its block

Copy link
Contributor

@elithrar elithrar left a comment

Choose a reason for hiding this comment

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

Can’t accept changes that would break the public API.

mux.go Outdated
// router that walk is about to descend down to should be skipped.
var SkipRouter = errors.New("skip this router")
var ErrSkipRouter = errors.New("skip this router")
Copy link
Contributor

Choose a reason for hiding this comment

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

This is a breaking change. That golint complains is unfortunate, but this predates golint.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Fixed

@elithrar elithrar self-assigned this Nov 21, 2019
@elithrar elithrar merged commit 49c0148 into gorilla:master Nov 21, 2019
@elithrar
Copy link
Contributor

Thanks!

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.

3 participants