mirror of
https://github.com/github/codeql.git
synced 2026-05-01 03:35:13 +02:00
Remove needless casts
This commit is contained in:
@@ -35,10 +35,10 @@ class PauseThreadSink extends DataFlow::Node {
|
||||
/** A sanitizer for lessThan check. */
|
||||
class LessThanSanitizer extends DataFlow::BarrierGuard instanceof ComparisonExpr {
|
||||
override predicate checks(Expr e, boolean branch) {
|
||||
e = this.(ComparisonExpr).getLesserOperand() and
|
||||
e = super.getLesserOperand() and
|
||||
branch = true
|
||||
or
|
||||
e = this.(ComparisonExpr).getGreaterOperand() and
|
||||
e = super.getGreaterOperand() and
|
||||
branch = false
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user