From a9cd74edc0828240bcb4ef904a09df93b0e4616a Mon Sep 17 00:00:00 2001 From: Laptop Date: Sat, 18 Jan 2025 12:29:52 +0200 Subject: [PATCH] fix flow in comments.js --- static/assets/comments.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/static/assets/comments.js b/static/assets/comments.js index 4d83438..ea13ffe 100644 --- a/static/assets/comments.js +++ b/static/assets/comments.js @@ -16,9 +16,9 @@ function comments(self) { var next = xhr.getResponseHeader('next'); if (next == 'done') { self.remove(); - } else { - self.setAttribute('href', next); + return; } + self.setAttribute('href', next); self.textContent = 'more comments'; } xhr.send();