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

fix: replace double negation with true #2813

Merged
merged 1 commit into from Jun 2, 2023

Conversation

cesarkohl
Copy link
Contributor

Hey there, I found a small issue.

A boolean cast via double negation (!!) is redundant when used as a condition The condition can be written without the extra cast and behave exactly the same.

In other words: !!true is true.

Hey there, I found a small issue

A boolean cast via double negation (!!) is redundant when used as a condition The condition can be written without the extra cast and behave exactly the same.
@codeclimate
Copy link

codeclimate bot commented May 10, 2023

Code Climate has analyzed commit e9260d8 and detected 0 issues on this pull request.

View more on Code Climate.

@cesarkohl cesarkohl changed the title Replace double negation with true fix: replace double negation with true May 10, 2023
@jasonbahl jasonbahl merged commit a89782c into wp-graphql:develop Jun 2, 2023
10 of 11 checks passed
@jasonbahl jasonbahl mentioned this pull request Jun 2, 2023
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.

None yet

2 participants