aboutsummaryrefslogtreecommitdiff
path: root/webmentions_ssg/views/endpoint.py
diff options
context:
space:
mode:
authorDennis Fink2026-11-13 20:26:18 +0100
committerDennis Fink2026-11-13 20:26:18 +0100
commit22f453be12822f1c26f2ba6e229cdc8840ffaa92 (patch)
treef71fac40338d451334fa3aac6bc15213564cd17f /webmentions_ssg/views/endpoint.py
parent8b6326f070c941510ebf1d27e53f501610406ea4 (diff)
downloadwebmentions-ssg-22f453be12822f1c26f2ba6e229cdc8840ffaa92.tar.gz
webmentions-ssg-22f453be12822f1c26f2ba6e229cdc8840ffaa92.zip
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.
Diffstat (limited to '')
-rw-r--r--webmentions_ssg/views/endpoint.py2
1 files changed, 1 insertions, 1 deletions
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