-
Notifications
You must be signed in to change notification settings - Fork 151
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: minor clean-ups #536
chore: minor clean-ups #536
Conversation
This reverts commit da574c4.
Thanks @bartoszmajsak for these fixes! Changes look good to me /lgtm |
@VaishnaviHire thanks, I added one additional thing while cleaning up error handling, please take a look when you'll find some time |
Co-authored-by: Wen Zhou <wenzhou@redhat.com>
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.
/lgtm
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: VaishnaviHire, zdtsw The full list of commands accepted by this bot can be found here. The pull request process is described here
Needs approval from an approver in each of these files:
Approvers can indicate their approval by writing |
* fix: handles err when checking managed RHODS * chore: fixes typos and godoc convention * chore: removes redundant pattern * chore: removes dead code * chore(deps): removes unused module * chore: fixes godoc to use documented function name first * chore: unifies receiver names * chore: wraps error instead of constructing new one * fix: removes rendundant _ exp from for loop * fix: removes redundant import alias * fix: removes unneeded string conversion * chore: switches file operations from depracated ioutil to os pkg * chore: swaps deprecated AddToScheme with Install * chore: handles ignored errors * Revert "chore: wraps error instead of constructing new one" This reverts commit da574c4. * chore: wraps errors using %w directive * chore: simplifies component error handling using multierr * chore: cleans up imports * chore: update docs in pkg/deploy/deploy.go Co-authored-by: Wen Zhou <wenzhou@redhat.com> --------- Co-authored-by: Wen Zhou <wenzhou@redhat.com> (cherry picked from commit efe23f7)
* fix: handles err when checking managed RHODS * chore: fixes typos and godoc convention * chore: removes redundant pattern * chore: removes dead code * chore(deps): removes unused module * chore: fixes godoc to use documented function name first * chore: unifies receiver names * chore: wraps error instead of constructing new one * fix: removes rendundant _ exp from for loop * fix: removes redundant import alias * fix: removes unneeded string conversion * chore: switches file operations from depracated ioutil to os pkg * chore: swaps deprecated AddToScheme with Install * chore: handles ignored errors * Revert "chore: wraps error instead of constructing new one" This reverts commit da574c4. * chore: wraps errors using %w directive * chore: simplifies component error handling using multierr * chore: cleans up imports * chore: update docs in pkg/deploy/deploy.go Co-authored-by: Wen Zhou <wenzhou@redhat.com> --------- Co-authored-by: Wen Zhou <wenzhou@redhat.com> (cherry picked from commit efe23f7)
Description
While working on a Service Mesh component, I discovered several areas in the codebase that could be slightly improved. This pull request aims to address those issues for better code quality and maintainability.
Changes
AddToScheme
andioutil
functionsThese changes are proposed separately from the component work, so the final PR won't be that large, but also to speed up their review and potential inclusion into the main codebase.
How Has This Been Tested?
make test
Merge criteria: