remove redundant inline type casts

This commit is contained in:
Erik Krogh Kristensen
2022-01-20 21:38:44 +01:00
parent b75c316c27
commit a235f8f023
4 changed files with 5 additions and 5 deletions

View File

@@ -163,7 +163,7 @@ private module FastApi {
exists(Class cls, API::Node base |
base = getModeledResponseClass(_).getASubclass*() and
cls.getABase() = base.getAUse().asExpr() and
responseClass.getAnImmediateUse().asExpr().(ClassExpr) = cls.getParent()
responseClass.getAnImmediateUse().asExpr() = cls.getParent()
|
exists(Assign assign | assign = cls.getAStmt() |
assign.getATarget().(Name).getId() = "media_type" and