From 9ef776b689b8c9fbb89d0b730b5168402f9ecbaa Mon Sep 17 00:00:00 2001 From: V1sionVerse <155375712+V1sionVerse@users.noreply.github.com> Date: Tue, 17 Mar 2026 16:31:12 +0100 Subject: [PATCH] Removed trailing whitespace --- server.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/server.py b/server.py index 4d4ea600c..29252512f 100644 --- a/server.py +++ b/server.py @@ -405,15 +405,15 @@ class PromptServer(): if overwrite is not None and (overwrite == "true" or overwrite == "1"): pass else: - # Get uploaded file size once - image.file.seek(0, 2) # Seek to end - uploaded_size = image.file.tell() - image.file.seek(0) # Reset to beginning + # Get uploaded file size once + image.file.seek(0, 2) # Seek to end + uploaded_size = image.file.tell() + image.file.seek(0) # Reset to beginning i = 1 while os.path.exists(filepath): - # Quick size comparison first - existing_size = os.path.getsize(filepath) + # Quick size comparison first + existing_size = os.path.getsize(filepath) if existing_size == uploaded_size: if compare_image_hash(filepath, image): #compare hash to prevent saving of duplicates with same name, fix for #3465 image_is_duplicate = True