mirror of
https://github.com/github/codeql.git
synced 2026-05-02 04:05:14 +02:00
Python: Apply suggestions from code review
Co-authored-by: yoff <lerchedahl@gmail.com>
This commit is contained in:
committed by
GitHub
parent
3fa66519f5
commit
7e7c363e43
@@ -117,7 +117,7 @@ private module FastApi {
|
||||
*/
|
||||
private API::Node getModeledResponseClass(string name) {
|
||||
name = "Response" and
|
||||
result = API::moduleImport("fastapi").getMember("Response")
|
||||
result = API::moduleImport("fastapi").getMember(name)
|
||||
or
|
||||
// see https://github.com/tiangolo/fastapi/blob/master/fastapi/responses.py
|
||||
name in [
|
||||
|
||||
Reference in New Issue
Block a user