Skip to content

Commit bf3de4c

Browse files
committed
Lint nits
1 parent f9c0af5 commit bf3de4c

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

src/utils/lockfile/package-lock-json.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -196,11 +196,11 @@ export async function getAlertsMapFromArborist(
196196
options_?: GetAlertsMapFromArboristOptions | undefined
197197
): Promise<AlertsByPkgId> {
198198
const options = {
199-
__proto__: null,
200-
consolidate: false,
201-
nothrow: false,
202-
...options_
203-
} as GetAlertsMapFromArboristOptions
199+
__proto__: null,
200+
consolidate: false,
201+
nothrow: false,
202+
...options_
203+
} as GetAlertsMapFromArboristOptions
204204

205205
const include = {
206206
__proto__: null,
@@ -274,7 +274,9 @@ export async function getAlertsMapFromArborist(
274274
} else if (!options.nothrow) {
275275
const statusCode = batchResult.status ?? 'unknown'
276276
const statusMessage = batchResult.error ?? 'No status message'
277-
throw new Error(`Socket API server error (${statusCode}): ${statusMessage}`)
277+
throw new Error(
278+
`Socket API server error (${statusCode}): ${statusMessage}`
279+
)
278280
}
279281
remaining -= 1
280282
if (spinner && remaining > 0) {

src/utils/lockfile/pnpm-lock-yaml.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,9 @@ export async function getAlertsMapFromPnpmLockfile(
7979
} else if (!options.nothrow) {
8080
const statusCode = batchResult.status ?? 'unknown'
8181
const statusMessage = batchResult.error ?? 'No status message'
82-
throw new Error(`Socket API server error (${statusCode}): ${statusMessage}`)
82+
throw new Error(
83+
`Socket API server error (${statusCode}): ${statusMessage}`
84+
)
8385
}
8486
remaining -= 1
8587
if (spinner && remaining > 0) {

0 commit comments

Comments
 (0)