Skip to content

Commit e59aa40

Browse files
committed
Cleanup unused dependencies
1 parent 899a882 commit e59aa40

File tree

2 files changed

+1
-5
lines changed

2 files changed

+1
-5
lines changed

package.json

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,6 @@
3737
"@types/content-type": "*",
3838
"@types/moo": "*",
3939
"@types/node": "*",
40-
"@typescript-eslint/eslint-plugin": "*",
41-
"@typescript-eslint/parser": "*",
4240
"eslint-import-resolver-typescript": "*",
4341
"eslint-plugin-import": "*",
4442
"typedoc": "*",

src/json/jsonast-util.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -156,9 +156,7 @@ const parseProperties = parseCommaSeparated(parseProperty, "}");
156156

157157
/** @type (startToken: JsonToken, endToken?: JsonToken) => Position */
158158
const tokenPosition = (startToken, endToken) => {
159-
if (!endToken) {
160-
endToken = startToken;
161-
}
159+
endToken ??= startToken;
162160

163161
return {
164162
start: {

0 commit comments

Comments
 (0)