mirror of
https://github.com/github/codeql.git
synced 2025-12-27 06:06:32 +01:00
Simplify exists according to the warning
This commit is contained in:
@@ -57,10 +57,8 @@ class ProbableJob extends Actions::Job {
|
||||
*/
|
||||
class ProbablePullRequestTarget extends Actions::On, YamlMappingLikeNode {
|
||||
ProbablePullRequestTarget() {
|
||||
exists(YamlNode prtNode |
|
||||
// The `on:` is triggered on `pull_request_target`
|
||||
this.getNode("pull_request_target") = prtNode
|
||||
)
|
||||
// The `on:` is triggered on `pull_request_target`
|
||||
exists(this.getNode("pull_request_target"))
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user