Skip to content

Commit 0bde481

Browse files
committed
content: gAIPCommentaryChunkedList: drop needless null annotation
1 parent 2a55763 commit 0bde481

File tree

1 file changed

+5
-9
lines changed

1 file changed

+5
-9
lines changed

src/content/dependencies/generateArtistInfoPageCommentaryChunkedList.js

+5-9
Original file line numberDiff line numberDiff line change
@@ -179,9 +179,7 @@ export default {
179179
query.chunks
180180
.map(({chunk}) => chunk
181181
.map(({annotation}) =>
182-
(annotation
183-
? relation('transformContent', annotation)
184-
: null))),
182+
relation('transformContent', annotation))),
185183
}),
186184

187185
data: (query) => ({
@@ -232,12 +230,10 @@ export default {
232230
}).map(({item, link, annotation, type}) =>
233231
item.slots({
234232
annotation:
235-
(annotation
236-
? annotation.slots({
237-
mode: 'inline',
238-
absorbPunctuationFollowingExternalLinks: false,
239-
})
240-
: null),
233+
annotation.slots({
234+
mode: 'inline',
235+
absorbPunctuationFollowingExternalLinks: false,
236+
}),
241237

242238
content:
243239
(type === 'album'

0 commit comments

Comments
 (0)