mirror of
https://github.com/laramies/theHarvester.git
synced 2025-02-25 15:03:01 +08:00
Merge pull request #323 from cueo/myparser-unique
Simplify `unique` method in myParser
This commit is contained in:
commit
abfb4f4b45
1 changed files with 1 additions and 5 deletions
|
@ -149,8 +149,4 @@ def urls(self):
|
|||
return urls
|
||||
|
||||
def unique(self) -> list:
|
||||
self.new = []
|
||||
for iteration in self.temp:
|
||||
if iteration not in self.new:
|
||||
self.new.append(iteration)
|
||||
return self.new
|
||||
return list(set(self.temp))
|
||||
|
|
Loading…
Reference in a new issue