Fix renderReplies, take 2

This commit is contained in:
Zed
2020-05-01 12:29:01 +02:00
parent 3dec3fba38
commit dc3c37b854
2 changed files with 2 additions and 1 deletions

View File

@@ -31,7 +31,6 @@ proc renderReplyThread(thread: Chain; prefs: Prefs; path: string): VNode =
proc renderReplies*(replies: Result[Chain]; prefs: Prefs; path: string): VNode =
buildHtml(tdiv(class="replies", id="r")):
if replies == nil: return
for thread in replies.content:
if thread == nil: continue
renderReplyThread(thread, prefs, path)