mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +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().
|
||||
*/
|
||||
predicate isAlias(Predicate pred) {
|
||||
pred instanceof ClasslessPredicate and exists(pred.(ClasslessPredicate).getAlias())
|
||||
}
|
||||
predicate isAlias(Predicate pred) { exists(pred.(ClasslessPredicate).getAlias()) }
|
||||
|
||||
from Predicate pred
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user