mirror of
https://github.com/github/codeql.git
synced 2025-12-24 04:36:35 +01:00
remove FP for js/redundant-operation
This commit is contained in:
@@ -64,7 +64,10 @@ class RedundantIdemnecantOperand extends RedundantOperand {
|
||||
* arguments to integers. For example, `x&x` is a common idiom for converting `x` to an integer.
|
||||
*/
|
||||
class RedundantIdempotentOperand extends RedundantOperand {
|
||||
RedundantIdempotentOperand() { getParent() instanceof LogicalBinaryExpr }
|
||||
RedundantIdempotentOperand() {
|
||||
getParent() instanceof LogicalBinaryExpr and
|
||||
not exists(UpdateExpr e | e.getParentExpr+() = this)
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user