Skip to content

Commit 6436caa

Browse files
committed
fix linting error
1 parent 61b4f80 commit 6436caa

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

image-preprocess.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ function imagePreprocess(options = {}) {
6969
let { content, offset } = processed
7070

7171
for (const attribute of attributes) {
72-
if (attribute.value[0]?.type === 'Text') {
72+
if (attribute.value[0] && attribute.value[0].type === 'Text') {
7373
const value = attribute.value[0]
7474
if (value.data.startsWith('http')) continue
7575

0 commit comments

Comments
 (0)