-
Notifications
You must be signed in to change notification settings - Fork 208
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
Refactor: replace raw loops with funcs from slices and maps #1784
Refactor: replace raw loops with funcs from slices and maps #1784
Conversation
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.
Thanks Nice work, one Nit
LGTM
@Luap99 @vrothberg @mheon @ashley-cui PTAL
Sure, LGTM modulo Dan's comment. |
Signed-off-by: Oleksandr Redko <Oleksandr_Redko@epam.com>
/hold |
[APPROVALNOTIFIER] This PR is APPROVED This pull-request has been approved by: alexandear, rhatdan 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 |
/hold cancel |
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.
Late LGTM, thanks!
This PR replaces raw loops with functions from slices and maps packages. By doing this, we are simplifying our code base, enhancing readability, and improving maintainability.
Also, deprecate unneeded function
util.StringInSlice
that can be replaced withslices.Contains
.When we upgrade to Go 1.21,
golang.org/x/exp/slices
will be replaced byslices
from std.