Skip to content

Found redundant literal in a logical expression #61

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

Closed
pavan-intelops opened this issue Mar 5, 2024 · 1 comment
Closed

Found redundant literal in a logical expression #61

pavan-intelops opened this issue Mar 5, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@pavan-intelops
Copy link
Collaborator

Description

Expressions that consistently result in either true or false when comparing values, and logical operations like ||, &&, and ?? that consistently either skip or fully evaluate their operands, often indicate mistakes. Logical operations that always yield the same result could lead to unexpected behavior or bugs in the program.

Occurrences

There are 4 occurrences of this issue in the repository.

See all occurrences on DeepSource → app.deepsource.com/gh/pavan-intelops/genpod/issue/JS-W1043/occurrences/

@pavan-intelops
Copy link
Collaborator Author

FIxed by removing all the redundant logical expressions

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Done
Development

No branches or pull requests

1 participant