Skip to content

Commit f60b332

Browse files
committed
Typo fix
1 parent 6119d63 commit f60b332

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

lib/rules/no-async-in-computed-properties.js

+1
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,7 @@ function create (context) {
126126
computedProperties.forEach(cp => {
127127
forbiddenNodes.forEach(el => {
128128
if (
129+
cp.value &&
129130
el.node.loc.start.line >= cp.value.loc.start.line &&
130131
el.node.loc.end.line <= cp.value.loc.end.line
131132
) {

lib/utils/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -349,6 +349,6 @@ module.exports = {
349349
}
350350

351351
return { key, value }
352-
}).filter(cp => cp.value)
352+
})
353353
}
354354
}

0 commit comments

Comments
 (0)