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

Return function values directly instead of wrapping when types/order are same #2

Open
theckman opened this issue Apr 16, 2018 · 0 comments

Comments

@theckman
Copy link

If your function returns an (*os.File, error) and the last function you call also returns an (*os.File, error) you should just return fn() instead:

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

No branches or pull requests

1 participant