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