mirror of
https://github.com/github/codeql.git
synced 2025-12-16 16:53:25 +01:00
Fixed github-advanced-security bot warning
This commit is contained in:
@@ -21,9 +21,7 @@ predicate isGetPredicate(Predicate pred) { pred.getName().regexpMatch("get[A-Z].
|
|||||||
/**
|
/**
|
||||||
* Checks if a predicate has a return type.
|
* Checks if a predicate has a return type.
|
||||||
*/
|
*/
|
||||||
predicate hasReturnType(Predicate pred) {
|
predicate hasReturnType(Predicate pred) { exists(pred.getReturnType()) }
|
||||||
exists(Type returnType | pred.getReturnType() = returnType)
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Checks if a predicate is an alias using getAlias().
|
* Checks if a predicate is an alias using getAlias().
|
||||||
|
|||||||
Reference in New Issue
Block a user