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: Fix new rubocop warnings #526

Merged
merged 1 commit into from
Feb 28, 2025
Merged

Conversation

dazuma
Copy link
Member

@dazuma dazuma commented Feb 27, 2025

The x ? true : false idiom is now getting flagged by rubocop under Style/RedundantCondition. I would argue this is a false positive, but I don't have confidence that is a popular enough opinion to cause rubocop to revert its behavior. In any case, we can avoid the problem by making the change in this PR. This does change the internal functionality, as @universe_domain_overridden is now merely truthy/falsey rather than strictly true or false. However, it should only get used internally (in a context where we don't care about the strict type), so that shouldn't matter.

@dazuma dazuma requested a review from a team as a code owner February 27, 2025 22:39
@dazuma dazuma merged commit 617f4f8 into googleapis:main Feb 28, 2025
10 checks passed
@dazuma dazuma deleted the pr/rubocoop branch February 28, 2025 00:43
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