fix flake8 issue in hacker target

This commit is contained in:
L1ghtn1ng 2021-08-21 23:54:10 +01:00
parent 250897140e
commit a10a412e76

View file

@ -5,6 +5,7 @@ class SearchHackerTarget:
"""
Class uses the HackerTarget api to gather subdomains and ips
"""
def __init__(self, word):
self.word = word
self.total_results = ""
@ -24,4 +25,4 @@ async def process(self, proxy=False):
await self.do_search()
async def get_hostnames(self) -> list:
return [result for result in self.total_results.splitlines() if not 'No PTR records found' in result]
return [result for result in self.total_results.splitlines() if 'No PTR records found' not in result]