We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 986e1cb commit a763dd7Copy full SHA for a763dd7
ql/ql/src/queries/style/ValidatePredicateGetReturns.ql
@@ -21,9 +21,7 @@ predicate isGetPredicate(Predicate pred) { pred.getName().regexpMatch("get[A-Z].
21
/**
22
* Checks if a predicate has a return type.
23
*/
24
-predicate hasReturnType(Predicate pred) {
25
- exists(Type returnType | pred.getReturnType() = returnType)
26
-}
+predicate hasReturnType(Predicate pred) { exists(pred.getReturnType()) }
27
28
29
* Checks if a predicate is an alias using getAlias().
0 commit comments