Skip to content

Avoid unnecessary usage of strings.Compare#566

Merged
komish merged 1 commit into
redhat-certification:mainfrom
caxu-rh:no-strings-compare
Jan 16, 2026
Merged

Avoid unnecessary usage of strings.Compare#566
komish merged 1 commit into
redhat-certification:mainfrom
caxu-rh:no-strings-compare

Conversation

@caxu-rh

@caxu-rh caxu-rh commented Jan 8, 2026

Copy link
Copy Markdown
Contributor

Simplify the conditional logic in places where the result of the 3-way compare doesn't matter (i.e. we are only checking if the result is equal, not greater/less).

Signed-off-by: Caleb Xu <caxu@redhat.com>
@github-actions

github-actions Bot commented Jan 8, 2026

Copy link
Copy Markdown

Thanks for your pull request!

A maintainer will review this pull request and trigger functional testing by adding the ok-to-test label.

This comment was auto-generated by GitHub Actions.

@komish komish added the ok-to-test Used after code review to run E2E/integration tests. label Jan 16, 2026

@komish komish left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

/lgtm

@komish komish merged commit 936b894 into redhat-certification:main Jan 16, 2026
17 checks passed
@github-actions github-actions Bot removed the ok-to-test Used after code review to run E2E/integration tests. label Jan 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants