mirror of
https://github.com/github/codeql.git
synced 2025-12-16 08:43:11 +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.
|
||||
*/
|
||||
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().
|
||||
|
||||
Reference in New Issue
Block a user