Skip to content

Commit

Permalink
Addressing code review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
colincasey committed Jul 4, 2024
1 parent ff124e6 commit b127e4b
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions lib/cookie/cookieJar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,15 +334,9 @@ export class CookieJar {
syncResult = result
})
} catch (err) {
if (err instanceof Error) {
syncErr = err
} else {
throw err
}
syncErr = err as Error
}

// These seem to be false positives; it can't detect that the value may be changed in the callback

if (syncErr) throw syncErr

return syncResult
Expand Down

0 comments on commit b127e4b

Please sign in to comment.