mirror of
https://github.com/github/codeql.git
synced 2026-04-26 09:15:12 +02:00
Torch.qll: use better alternative instead of exists
This commit is contained in:
@@ -21,7 +21,7 @@ private module Torch {
|
||||
|
||||
override predicate mayExecuteInput() {
|
||||
not exists(this.getParameter(2, "pickle_module").asSink()) or
|
||||
exists(this.getParameter(2, "pickle_module").asSink().asExpr().(None))
|
||||
this.getParameter(2, "pickle_module").asSink().asExpr() instanceof None
|
||||
}
|
||||
|
||||
override DataFlow::Node getAnInput() { result = this.getParameter(0, "f").asSink() }
|
||||
|
||||
Reference in New Issue
Block a user