-
Notifications
You must be signed in to change notification settings - Fork 867
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
chore: updating getCanaryConfigId to be more efficient with better error handling #3070
Conversation
…dling Signed-off-by: zhaque44 <[email protected]>
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
Codecov ReportAttention:
Additional details and impacted files@@ Coverage Diff @@
## master #3070 +/- ##
==========================================
- Coverage 81.74% 81.73% -0.01%
==========================================
Files 134 134
Lines 20398 20394 -4
==========================================
- Hits 16674 16670 -4
Misses 2866 2866
Partials 858 858
☔ View full report in Codecov by Sentry. |
@zachaller can you take a look at this PR, I think its only failing b/c it wants a test for this |
…ror handling (argoproj#3070) updating getCanaryConfigId to be more efficient with better error handling Signed-off-by: zhaque44 <[email protected]> Signed-off-by: Philip Clark <[email protected]>
…ror handling (argoproj#3070) updating getCanaryConfigId to be more efficient with better error handling Signed-off-by: zhaque44 <[email protected]> Signed-off-by: Philip Clark <[email protected]>
…ror handling (argoproj#3070) updating getCanaryConfigId to be more efficient with better error handling Signed-off-by: zhaque44 <[email protected]> Signed-off-by: Philip Clark <[email protected]>
Updating
getCanaryConfigId
func:Error Handling:
It now handles errors more cleanly.Resource Management:
It closes the HTTP response body to prevent resource leaks.Last but not least it simplifies things by reducing nesting and using the defer statement for cleanup.
Checklist:
"fix(controller): Updates such and such. Fixes #1234"
.