Skip to content

Commit

Permalink
fix: coverage issue with single if blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
nilshah98 committed Nov 24, 2023
1 parent c1ec3d6 commit 98ff139
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions packages/core/src/network.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,10 +172,9 @@ export class Network {
this.#pending.delete(requestId);

// guard against redirects with the same requestId
if (pending?.request.url === event.request.url &&
pending.request.method === event.request.method) {
await this._handleRequest(session, { ...pending, resourceType, interceptId });
}
pending?.request.url === event.request.url &&

Check warning on line 175 in packages/core/src/network.js

View workflow job for this annotation

GitHub Actions / Lint

Expected an assignment or function call and instead saw an expression
pending.request.method === event.request.method &&
await this._handleRequest(session, { ...pending, resourceType, interceptId });
}

// Called when a request will be sent. If the request has already been intercepted, handle it;
Expand Down

0 comments on commit 98ff139

Please sign in to comment.