Skip to content
This repository was archived by the owner on May 13, 2025. It is now read-only.

Conversation

@deepsource-autofix
Copy link
Contributor

In contexts such as an if statement's test where the result of the expression will already be coerced to a Boolean, casting to a Boolean via double negation (!!) or a Boolean call is unnecessary.

In contexts such as an `if` statement's test where the result of the expression will already be coerced to a `Boolean`, casting to a `Boolean` via double negation (`!!`) or a `Boolean` call is unnecessary.
@nitisht nitisht merged commit 0acaaca into main Jul 7, 2023
@github-actions github-actions bot locked and limited conversation to collaborators Jul 7, 2023
@nitisht nitisht deleted the deepsource-autofix-6eee3b0a branch July 8, 2023 15:56
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant