Skip to content

Commit 7996a84

Browse files
committed
fix
1 parent 8e3b587 commit 7996a84

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/utils/indent-common.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -468,6 +468,7 @@ module.exports.defineVisitor = function create(
468468
const prevToken = tokenStore.getTokenBefore(firstToken)
469469
if (
470470
info != null &&
471+
prevToken &&
471472
isSemicolonToken(prevToken) &&
472473
prevToken.loc.end.line === firstToken.loc.start.line
473474
) {

0 commit comments

Comments
 (0)