Skip to content

Commit 6084aac

Browse files
committed
no plaintext logs if no logs
1 parent 9380cc6 commit 6084aac

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

render-txt.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,10 @@ for (let { room, historical } of rooms) {
1414
.filter(f => /^[0-9]{4}-[0-9]{2}-[0-9]{2}\.json$/.test(f))
1515
.map(d => d.replace(/\.json$/, ''))
1616
.sort();
17+
18+
if (days.length === 0) {
19+
continue;
20+
}
1721

1822
// gotta get `groupBy` added... https://github.com/tc39/proposal-array-filtering/issues/2#issuecomment-810594446
1923
let months = new Map();

0 commit comments

Comments
 (0)