From 3e06706faee9d509e9d377f39634af1c21de198e Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Sun, 7 Feb 2021 15:29:14 -0400 Subject: only generate commentary index if any exists --- upd8.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/upd8.js b/upd8.js index 130f606..e53da22 100755 --- a/upd8.js +++ b/upd8.js @@ -3197,6 +3197,10 @@ function getWordCount(str) { } function writeCommentaryPages() { + if (!filterAlbumsByCommentary().length) { + return; + } + return progressPromiseAll('Writing commentary pages.', queue([ writeCommentaryIndex, ...filterAlbumsByCommentary().map(curry(writeAlbumCommentaryPage)) -- cgit 1.3.0-6-gf8a5