mirror of
https://github.com/github/codeql.git
synced 2025-12-17 01:03:14 +01:00
Update ql/ql/src/queries/style/ValidatePredicateGetReturns.ql
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
@@ -26,9 +26,7 @@ predicate hasReturnType(Predicate pred) { exists(pred.getReturnType()) }
|
|||||||
/**
|
/**
|
||||||
* Checks if a predicate is an alias using getAlias().
|
* Checks if a predicate is an alias using getAlias().
|
||||||
*/
|
*/
|
||||||
predicate isAlias(Predicate pred) {
|
predicate isAlias(Predicate pred) { exists(pred.(ClasslessPredicate).getAlias()) }
|
||||||
pred instanceof ClasslessPredicate and exists(pred.(ClasslessPredicate).getAlias())
|
|
||||||
}
|
|
||||||
|
|
||||||
from Predicate pred
|
from Predicate pred
|
||||||
where
|
where
|
||||||
|
|||||||
Reference in New Issue
Block a user