Skip to content

Commit 66cba89

Browse files
committed
Torch.qll: use better alternative instead of exists
1 parent 8c3994b commit 66cba89

File tree

1 file changed

+1
-1
lines changed
  • python/ql/lib/semmle/python/frameworks

1 file changed

+1
-1
lines changed

python/ql/lib/semmle/python/frameworks/Torch.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ private module Torch {
2121

2222
override predicate mayExecuteInput() {
2323
not exists(this.getParameter(2, "pickle_module").asSink()) or
24-
exists(this.getParameter(2, "pickle_module").asSink().asExpr().(None))
24+
this.getParameter(2, "pickle_module").asSink().asExpr() instanceof None
2525
}
2626

2727
override DataFlow::Node getAnInput() { result = this.getParameter(0, "f").asSink() }

0 commit comments

Comments
 (0)