-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
Add explicit error return #2469
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2469 +/- ##
=======================================
Coverage 98.03% 98.03%
=======================================
Files 122 122
Lines 10692 10695 +3
=======================================
+ Hits 10482 10485 +3
Misses 144 144
Partials 66 66
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
github/repos_contents.go
Outdated
} | ||
return parsedURL, newResponse(resp), nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I know this is another thing that is inconsistent across this repo, but while I'm thinking about it, let's go ahead and add a blank line between the error handling and the final return, please.
} | |
return parsedURL, newResponse(resp), nil | |
} | |
return parsedURL, newResponse(resp), nil |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- Done.
Note that I'm going to change the title of this PR because it is technically not an "unhandled error"... it is simply an error that is not explicitly tested for. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, @mo1ein !
LGTM.
Merging.
No description provided.