Fixed github-advanced-security bot warning

This commit is contained in:
Napalys
2024-11-29 14:55:53 +01:00
parent 986e1cb597
commit a763dd7267

View File

@@ -21,9 +21,7 @@ predicate isGetPredicate(Predicate pred) { pred.getName().regexpMatch("get[A-Z].
/**
* Checks if a predicate has a return type.
*/
predicate hasReturnType(Predicate pred) {
exists(Type returnType | pred.getReturnType() = returnType)
}
predicate hasReturnType(Predicate pred) { exists(pred.getReturnType()) }
/**
* Checks if a predicate is an alias using getAlias().