refactor(authn/method): improve code style and error handling in util.go#4775
Conversation
|
Related Documentation Checked 3 published document(s). No updates required. You have 3 draft document(s). Publish docs to keep them always up-to-date |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## v2 #4775 +/- ##
==========================================
- Coverage 58.55% 58.53% -0.02%
==========================================
Files 135 135
Lines 16840 16843 +3
==========================================
- Hits 9860 9859 -1
- Misses 6294 6298 +4
Partials 686 686
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
|
Thank you for the contribution @ptejasvini ! Would you mind following the instructions to sign the DCO ? Dont worry about the failing tests, those are flakey that I'm trying to figure out how to make less flakey: #4771 |
|
👋 Hi @ptejasvini! Thanks for your contribution to this project. It looks like one or more of your commits are missing a DCO (Developer Certificate of Origin) sign-off. The DCO is a simple way for you to certify that you have the right to submit this code under the project's license. How to fix this: # For future commits, use the -s flag
git commit -s -m "Your commit message"
# To sign off on existing commits in this PR
git rebase HEAD~$(git rev-list --count origin/v2..HEAD) --signoff
git push --force-with-leaseThe 📋 View the failing DCO check for more details For more information about the DCO, visit: https://developercertificate.org/ |
5e9088a to
3a2a3a0
Compare
Summary: Refactored code in util.go for better readability and maintainability. Applied inline error handling and replaced magic values with constants. Ensured code style aligns with project and Google Go style guide recommendations. Signed-off-by: tejasvini1 <[email protected]>
Signed-off-by: tejasvini1 <[email protected]>
8534204 to
1fa456a
Compare
|
Hey @markphelps ! Thanks a lot for quick help! I have added the sign off. PTAL and can you let me know if it is good to approve the diff. |
markphelps
left a comment
There was a problem hiding this comment.
lgtm! thank you for the contribution @ptejasvini
Signed-off-by: tejasvini1 <[email protected]>
|
Hey @markphelps , i think it requires approval, PTAL. |
|
Hey @markphelps, thanks for reviewing the PR! It looks like the workflows are still pending approval. Could you kindly approve them so the CI checks can run? Appreciate your help! |
Signed-off-by: tejasvini1 <[email protected]>
|
Hey @markphelps — I've pushed a new commit to fix the UT failures. Could you please re-approve the workflows so CI can run? Thank you again! |
|
@markphelps Gentle Bump ^^ |
|
Thank you @ptejasvini !! |
|
Documentation Updates Checked 4 published document(s). No updates required. You have 1 draft document(s). Publish docs to keep them always up-to-date |
Summary:
Refactored code in util.go for better readability and maintainability.
Applied inline error handling and replaced magic values with constants.
Ensured code style aligns with project and Google Go style guide recommendations.