Skip to content

Commit 5fa40c4

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

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ predicate hasReturnType(Predicate pred) { exists(pred.getReturnType()) }
2727
* Checks if a predicate is an alias using getAlias().
2828
*/
2929
predicate isAlias(Predicate pred) {
30-
pred instanceof ClasslessPredicate and exists(pred.(ClasslessPredicate).getAlias())
30+
exists(pred.(ClasslessPredicate).getAlias())
3131
}
3232

3333
from Predicate pred

0 commit comments

Comments
 (0)