Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes generated models_test.go from importing old packr #17

Merged
merged 1 commit into from
Sep 19, 2019

Conversation

markbates
Copy link
Member

No description provided.

Copy link

@ghost ghost left a comment

Choose a reason for hiding this comment

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

Found some fixes!

P.S. share your ideas, feedbacks or issues with us at https://github.com/fixmie/feedback (this message will be removed after the beta stage).


import "fmt"

// go2 errors
Copy link

Choose a reason for hiding this comment

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

existing comment doesn't match identifier "Wrapper"

Suggested change
// go2 errors
// Wrapper errors

Unwrap() error
}

// pkg/errors
Copy link

Choose a reason for hiding this comment

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

existing comment doesn't match identifier "Causer"

Suggested change
// pkg/errors
// Causer ...

Cause() error
}

func Unwrap(err error) error {
Copy link

Choose a reason for hiding this comment

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

exported identifier "Unwrap" should have comment

Suggested change
func Unwrap(err error) error {
// Unwrap ...
func Unwrap(err error) error {

return err
}

var Cause = Unwrap
Copy link

Choose a reason for hiding this comment

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

exported identifier "Cause" should have comment

Suggested change
var Cause = Unwrap
// Cause ...
var Cause = Unwrap


var Cause = Unwrap

func Wrap(err error, msg string) error {
Copy link

Choose a reason for hiding this comment

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

exported identifier "Wrap" should have comment

Suggested change
func Wrap(err error, msg string) error {
// Wrap ...
func Wrap(err error, msg string) error {

@markbates markbates merged commit 50837fc into master Sep 19, 2019
@markbates markbates deleted the fix-a-few-things branch September 19, 2019 17:22
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.

None yet

1 participant