From 22f453be12822f1c26f2ba6e229cdc8840ffaa92 Mon Sep 17 00:00:00 2001 From: Dennis Fink Date: Fri, 13 Nov 2026 20:26:18 +0100 Subject: refactor(core): remove redundant abort returns Call Flask `abort` directly in view guards since it always raises and never returns, simplifying error branches without changing response behavior. --- webmentions_ssg/views/endpoint.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'webmentions_ssg/views/endpoint.py') diff --git a/webmentions_ssg/views/endpoint.py b/webmentions_ssg/views/endpoint.py index a94310e..e3f1368 100644 --- a/webmentions_ssg/views/endpoint.py +++ b/webmentions_ssg/views/endpoint.py @@ -147,7 +147,7 @@ def status(identifier: uuid.UUID) -> ResponseReturnValue: webmention = db.session.get(ReceivedWebmention, identifier) if webmention is None: - return abort(404) + abort(404) return render_template( "status.html", title="Webmention status", webmention=webmention -- cgit v1.3.1