Lang
Maintainability
useless-if-conditional
useless-if-conditional
Detected an if block that checks for the same condition on both branches ($X
). The second condition check is useless as it is the same as the first, and therefore can be removed from the code,
useless-if-body
useless-if-body
Detected identical statements in the if body and the else body of an if-statement. This will lead to the same code being executed no matter what the if-expression evaluates to. Instead, remove the if statement.