From ebf4408db60ba1e3566dcde6e91a16f7eb318c62 Mon Sep 17 00:00:00 2001 From: Hitesh Garg Date: Wed, 22 Oct 2025 13:41:56 +0530 Subject: [PATCH] removing redundant code removing redundant code --- sherlock_project/notify.py | 3 --- sherlock_project/result.py | 1 - sherlock_project/sherlock.py | 1 - sherlock_project/sites.py | 2 -- 4 files changed, 7 deletions(-) diff --git a/sherlock_project/notify.py b/sherlock_project/notify.py index f6c785d63..9f14685f1 100644 --- a/sherlock_project/notify.py +++ b/sherlock_project/notify.py @@ -137,7 +137,6 @@ def __init__(self, result=None, verbose=False, print_all=False, browse=False): self.print_all = print_all self.browse = browse - return def start(self, message): """Notify Start. @@ -163,7 +162,6 @@ def start(self, message): # An empty line between first line and the result(more clear output) print('\r') - return def countResults(self): """This function counts the number of results. Every time the function is called, @@ -254,7 +252,6 @@ def update(self, result): f"Unknown Query Status '{result.status}' for site '{self.result.site_name}'" ) - return def finish(self, message="The processing has been finished."): """Notify Start. diff --git a/sherlock_project/result.py b/sherlock_project/result.py index c4d68b1c8..cd23f6da5 100644 --- a/sherlock_project/result.py +++ b/sherlock_project/result.py @@ -69,7 +69,6 @@ def __init__(self, username, site_name, site_url_user, status, 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 75b3e3d70..d9e19f197 100644 --- a/sherlock_project/sherlock.py +++ b/sherlock_project/sherlock.py @@ -85,7 +85,6 @@ def response_time(resp, *args, **kwargs): """ 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 b7aaf4c58..9a359af03 100644 --- a/sherlock_project/sites.py +++ b/sherlock_project/sites.py @@ -60,7 +60,6 @@ def __init__(self, name, url_home, url_username_format, username_claimed, self.information = information self.is_nsfw = is_nsfw - return def __str__(self): """Convert Object To String. @@ -208,7 +207,6 @@ def __init__( 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 = []): """