diff options
author | (quasar) nebula <qznebula@protonmail.com> | 2025-02-04 13:34:45 -0400 |
---|---|---|
committer | (quasar) nebula <qznebula@protonmail.com> | 2025-02-04 13:34:45 -0400 |
commit | 0bde481020c75ac62fad2b28d053b4131313a7a3 (patch) | |
tree | 13a699e75f86e9d2398e7fddeddb7eb651b42faa | |
parent | 2a55763b91a33605238c25bec237788bd1c91b52 (diff) |
content: gAIPCommentaryChunkedList: drop needless null annotation
-rw-r--r-- | src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js | 14 |
1 files changed, 5 insertions, 9 deletions
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' |