1
0
mirror of https://github.com/mgeeky/Penetration-Testing-Tools.git synced 2025-07-17 22:01:57 +02:00

result used before assignment

result variable was used before assignment. Also fixed unnecessary code for len check of result since when it is not set in if call above we can directly return an empty list
This commit is contained in:
qwertiko GmbH
2021-10-18 16:34:36 +02:00
committed by GitHub
parent 4e230a5714
commit 821f51a700

@ -1660,15 +1660,12 @@ Results will be unsound. Make sure you have pasted your headers with correct spa
if value.strip().lower() == 'yes':
result = self.logger.colored(f'- SpamAssassin marked this message as SPAM:\n', 'red')
result += f'\t- ' + self.logger.colored(value, 'red') + '\n'
if len(result) == 0:
return []
return {
'header' : header,
'value': value,
'analysis' : result
}
return {
'header' : header,
'value': value,
'analysis' : result
}
return []
def testSpamAssassinSpamLevel(self):
(num, header, value) = self.getHeader('X-Spam-Level')