Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 5469186

Browse files
committed
minor comment update
1 parent 637a8d8 commit 5469186

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

lib/request/comparison.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,11 +32,11 @@ def comparison(page, headers, code=None, getRatioValue=False, pageLength=None):
3232
return _adjust(_comparison(page, headers, code, getRatioValue, pageLength), getRatioValue)
3333

3434
def _adjust(condition, getRatioValue):
35-
# Negative logic approach is used in raw page comparison scheme as that what is "different" than original
36-
# PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
37-
# applied as that is by the user considered as True is that what is returned by the comparison mechanism
38-
# itself
3935
if not any([conf.string, conf.regexp, conf.code]):
36+
# Negative logic approach is used in raw page comparison scheme as that what is "different" than original
37+
# PAYLOAD.WHERE.NEGATIVE response is considered as True; in switch based approach negative logic is not
38+
# applied as that what is by user considered as True is that what is returned by the comparison mechanism
39+
# itself
4040
retVal = not (condition or False) if kb.negativeLogic else condition
4141
else:
4242
retVal = condition if not getRatioValue else (MAX_RATIO if condition else MIN_RATIO)

0 commit comments

Comments
 (0)