From 212bf7ca75c094b99944c0d0221eec5c99fc6217 Mon Sep 17 00:00:00 2001 From: CronyAkatsuki Date: Tue, 19 Dec 2023 13:10:13 +0100 Subject: [PATCH] Update main.py --- main.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/main.py b/main.py index 8e5fe31..0027270 100644 --- a/main.py +++ b/main.py @@ -142,9 +142,7 @@ If you wan't to delete a file ask the hoster of the instance!!" remove(file_path) if re.search("^curl/.*", str(user_agent)): return PlainTextResponse(f"file {file} deleted from the server\n") - else: - return RedirectResponse(request.url_for("files")) + return RedirectResponse(request.url_for("files")) if re.search("^curl/.*", str(user_agent)): return PlainTextResponse(f"file {file} doesn't exist on the server\n") - else: - return RedirectResponse(request.url_for("files")) + return RedirectResponse(request.url_for("files")) \ No newline at end of file