Skip to content

Hunt down social media accounts by username across social networks

Remove unnecessary "return" statements (#2712)

Hitesh Garg5bb46ab23bc2
diff --git a/sherlock_project/result.py b/sherlock_project/result.py
index c4d68b1c..cd23f6da 100644
--- a/sherlock_project/result.py
+++ b/sherlock_project/result.py
@@ -69,7 +69,6 @@ class QueryResult():
self.query_time = query_time
self.context = context
- return
def __str__(self):
"""Convert Object To String.
diff --git a/sherlock_project/sherlock.py b/sherlock_project/sherlock.py
index e037d394..a9937ece 100644
--- a/sherlock_project/sherlock.py
+++ b/sherlock_project/sherlock.py
@@ -85,7 +85,6 @@ class SherlockFuturesSession(FuturesSession):
"""
resp.elapsed = monotonic() - start
- return
# Install hook to execute when response completes.
# Make sure that the time measurement hook is first, so we will not
diff --git a/sherlock_project/sites.py b/sherlock_project/sites.py
index c42554ba..77b935c6 100644
--- a/sherlock_project/sites.py
+++ b/sherlock_project/sites.py
@@ -60,7 +60,6 @@ class SiteInformation:
self.information = information
self.is_nsfw = is_nsfw
- return
def __str__(self):
"""Convert Object To String.
@@ -203,7 +202,6 @@ class SitesInformation:
except TypeError:
print(f"Encountered TypeError parsing json contents for target '{site_name}' at {data_file_path}\nSkipping target.\n")
- return
def remove_nsfw_sites(self, do_not_remove: list = []):
"""