Skip to content

Commit 5e72586

Browse files
committed
Add missing check
1 parent dbb36d8 commit 5e72586

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/rules/computed-property-return.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ function create (context) {
6565
forbiddenNodes.forEach(el => {
6666
if (
6767
el.node &&
68+
cp.value &&
6869
el.node.loc.start.line >= cp.value.loc.start.line &&
6970
el.node.loc.end.line <= cp.value.loc.end.line
7071
) {

0 commit comments

Comments
 (0)