Skip to content

Commit 3e36c67

Browse files
committed
Python: Removes superfluous cast
1 parent 88daf65 commit 3e36c67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ql/src/Exceptions/EmptyExcept.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ predicate subscript(Stmt s) {
6464
s.(Delete).getATarget() instanceof Subscript
6565
}
6666

67-
predicate encode_decode(Expr ex, ClassValue type) {
67+
predicate encode_decode(Call ex, ClassValue type) {
6868
exists(string name |
69-
ex.(Call).getFunc().(Attribute).getName() = name |
69+
ex.getFunc().(Attribute).getName() = name |
7070
name = "encode" and type = ClassValue::unicodeEncodeError()
7171
or
7272
name = "decode" and type = ClassValue::unicodeDecodeError()

0 commit comments

Comments
 (0)