mirror of
https://github.com/github/codeql.git
synced 2026-02-23 10:23:41 +01:00
remove redundant inline type casts
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user