Skip to content

Commit a5521b9

Browse files
Napalysaschackmull
andcommitted
Update ql/ql/src/queries/style/ValidatePredicateGetReturns.ql
Co-authored-by: Anders Schack-Mulligen <[email protected]>
1 parent a763dd7 commit a5521b9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ql/ql/src/queries/style/ValidatePredicateGetReturns.ql

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,7 @@ predicate hasReturnType(Predicate pred) { exists(pred.getReturnType()) }
2626
/**
2727
* Checks if a predicate is an alias using getAlias().
2828
*/
29-
predicate isAlias(Predicate pred) {
30-
pred instanceof ClasslessPredicate and exists(pred.(ClasslessPredicate).getAlias())
31-
}
29+
predicate isAlias(Predicate pred) { exists(pred.(ClasslessPredicate).getAlias()) }
3230

3331
from Predicate pred
3432
where

0 commit comments

Comments
 (0)