From 0bde481020c75ac62fad2b28d053b4131313a7a3 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Tue, 4 Feb 2025 13:34:45 -0400 Subject: content: gAIPCommentaryChunkedList: drop needless null annotation --- .../generateArtistInfoPageCommentaryChunkedList.js | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) (limited to 'src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js') diff --git a/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js b/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js index 0f238d13..711db34b 100644 --- a/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js +++ b/src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js @@ -179,9 +179,7 @@ export default { query.chunks .map(({chunk}) => chunk .map(({annotation}) => - (annotation - ? relation('transformContent', annotation) - : null))), + relation('transformContent', annotation))), }), data: (query) => ({ @@ -232,12 +230,10 @@ export default { }).map(({item, link, annotation, type}) => item.slots({ annotation: - (annotation - ? annotation.slots({ - mode: 'inline', - absorbPunctuationFollowingExternalLinks: false, - }) - : null), + annotation.slots({ + mode: 'inline', + absorbPunctuationFollowingExternalLinks: false, + }), content: (type === 'album' -- cgit 1.3.0-6-gf8a5