Skip to content

chore: Work around an annoying rubocop change #215

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

Merged
merged 1 commit into from
Feb 28, 2025

Conversation

dazuma
Copy link
Member

@dazuma dazuma commented Feb 27, 2025

The Style/RedundantCondition cop seems to be flagging this case now. I would argue it's a false positive, but I'm not confident that viewpoint will be popular enough to force rubocop to revert its behavior. Unfortunately there doesn't seem to be a good alternative for this functionality that isn't also flagged by rubocop. I've made the judgment call that reverting to the "double-negative" idiom is probably the best option that preserves the intent while minimizing the blast radius of disabling a rubocop check. This of course has no functional impact on the code; hence I'm classifying it as "chore:" for conventional commit purposes.

@dazuma dazuma merged commit 8433662 into GoogleCloudPlatform:main Feb 28, 2025
20 checks passed
@dazuma dazuma deleted the pr/rubocoop branch February 28, 2025 01:24
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.

3 participants