Minor style updates

This commit is contained in:
Miroslav Stampar
2025-05-08 22:30:54 +02:00
parent d3d54a965b
commit ad1266a080
14 changed files with 25 additions and 38 deletions

View File

@@ -277,7 +277,7 @@ def checkSqlInjection(place, parameter, value):
logger.debug(debugMsg)
continue
elif kb.reduceTests == False:
elif kb.reduceTests is False:
pass
# Skip DBMS-specific test if it does not match the
@@ -529,7 +529,7 @@ def checkSqlInjection(place, parameter, value):
truePage, trueHeaders, trueCode = threadData.lastComparisonPage or "", threadData.lastComparisonHeaders, threadData.lastComparisonCode
trueRawResponse = "%s%s" % (trueHeaders, truePage)
if trueResult and not(truePage == falsePage and not any((kb.nullConnection, conf.code))):
if trueResult and not (truePage == falsePage and not any((kb.nullConnection, conf.code))):
# Perform the test's False request
falseResult = Request.queryPage(genCmpPayload(), place, raise404=False)