Skip to content

Commit

Permalink
Remove optional operator
Browse files Browse the repository at this point in the history
  • Loading branch information
blakeembrey committed Sep 26, 2024
1 parent 776c898 commit 973d15c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,6 @@ function isNameSafe(name: string) {
}

function isNextNameSafe(token: Token | undefined) {
if (token?.type !== "text") return true;
if (!token || token.type !== "text") return true;
return !ID_CONTINUE.test(token.value[0]);
}

0 comments on commit 973d15c

Please sign in to comment.