Fix issue avoid-missing-comma found at https://codereview.doctor

This commit is contained in:
code-review-doctor 2022-03-03 09:10:58 +00:00
parent b87758bd75
commit 2f888a89e0

View File

@ -405,8 +405,8 @@ class HttpFlood(Thread):
@staticmethod
def getMethodType(method: str) -> str:
return "GET" if {method.upper()} & {"CFB", "CFBUAM", "GET", "COOKIE", "OVH", "EVEN",
"STRESS", "DYN", "SLOW", "PPS", "APACHE"
"BOT"} \
"STRESS", "DYN", "SLOW", "PPS", "APACHE",
"BOT",} \
else "POST" if {method.upper()} & {"POST", "XMLRPC"} \
else "HEAD" if {method.upper()} & {"GSB", "HEAD"} \
else "REQUESTS"