Skip to content

Commit bdfd6bd

Browse files
committed
fix a ql/field-only-used-in-charpred warning
1 parent 50bfc8e commit bdfd6bd

File tree

1 file changed

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

1 file changed

+1
-4
lines changed

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

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -403,11 +403,8 @@ module Flask {
403403
}
404404

405405
private class RequestAttrMultiDict extends Werkzeug::MultiDict::InstanceSource {
406-
string attr_name;
407-
408406
RequestAttrMultiDict() {
409-
this = request().getMember(attr_name).getAnImmediateUse() and
410-
attr_name in ["args", "values", "form", "files"]
407+
this = request().getMember(["args", "values", "form", "files"]).getAnImmediateUse()
411408
}
412409
}
413410

0 commit comments

Comments
 (0)