Skip to content
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: simplify comparators #4499

Merged
merged 5 commits into from
Mar 13, 2024
Merged

Conversation

ldez
Copy link
Member

@ldez ldez commented Mar 13, 2024

Replace all comparator implementations with one (comparator) and simple functions.

Less code but the same behavior.

@ldez ldez added enhancement New feature or improvement topic: cleanup Related to code, process, or doc cleanup labels Mar 13, 2024
@ldez ldez added this to the next milestone Mar 13, 2024
@ldez ldez requested review from alexandear and Antonboom March 13, 2024 14:53
@ldez ldez force-pushed the feat/simpify-comparators branch 2 times, most recently from 812cee7 to f958bd5 Compare March 13, 2024 15:07
@ldez ldez force-pushed the feat/simpify-comparators branch from f958bd5 to 905f4b7 Compare March 13, 2024 15:08
@ldez ldez force-pushed the feat/simpify-comparators branch from 52294b9 to f84c4a5 Compare March 13, 2024 15:17
pkg/result/processors/sort_results.go Outdated Show resolved Hide resolved
Co-authored-by: Oleksandr Redko <oleksandr.red+github@gmail.com>
Copy link
Contributor

@Antonboom Antonboom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bellissimo 👌

pkg/result/processors/sort_results.go Show resolved Hide resolved
@ldez ldez merged commit 51a963f into golangci:master Mar 13, 2024
12 checks passed
@ldez ldez deleted the feat/simpify-comparators branch March 13, 2024 20:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or improvement topic: cleanup Related to code, process, or doc cleanup
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants