Skip to content

Commit

Permalink
Merge branch 'master' into update_contributors
Browse files Browse the repository at this point in the history
  • Loading branch information
colincasey committed Jun 24, 2024
2 parents c1cde8a + e485f17 commit 9daadb2
Show file tree
Hide file tree
Showing 4 changed files with 336 additions and 325 deletions.
2 changes: 0 additions & 2 deletions api/tough-cookie.api.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
```ts

/// <reference types="node" />

// @public
export interface Callback<T> {
// (undocumented)
Expand Down
4 changes: 2 additions & 2 deletions lib/cookie/cookieJar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -916,7 +916,7 @@ export class CookieJar {
cookies = cookies.filter(matchingCookie)

// sorting of S5.4 part 2
if (options && 'sort' in options && options.sort !== false) {
if ('sort' in options && options.sort !== false) {
cookies = cookies.sort(cookieCompare)
}

Expand Down Expand Up @@ -1474,7 +1474,7 @@ export class CookieJar {

completedCount++

if (completedCount === cookies?.length) {
if (completedCount === cookies.length) {
if (removeErrors[0]) cb(removeErrors[0])
else cb(null, undefined)
return
Expand Down
Loading

0 comments on commit 9daadb2

Please sign in to comment.