Skip to content

Commit a763dd7

Browse files
committed
Fixed github-advanced-security bot warning
1 parent 986e1cb commit a763dd7

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
@@ -21,9 +21,7 @@ predicate isGetPredicate(Predicate pred) { pred.getName().regexpMatch("get[A-Z].
2121
/**
2222
* Checks if a predicate has a return type.
2323
*/
24-
predicate hasReturnType(Predicate pred) {
25-
exists(Type returnType | pred.getReturnType() = returnType)
26-
}
24+
predicate hasReturnType(Predicate pred) { exists(pred.getReturnType()) }
2725

2826
/**
2927
* Checks if a predicate is an alias using getAlias().

0 commit comments

Comments
 (0)