Skip to content

Commit

Permalink
Fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
mroderick committed Dec 5, 2022
1 parent d20178d commit 2dc15b0
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/fake-xhr/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -333,9 +333,10 @@ function fakeXMLHttpRequestFor(globalScope) {

function verifyRequestOpened(xhr) {
if (xhr.readyState !== FakeXMLHttpRequest.OPENED) {
const errorMessage = xhr.readyState === FakeXMLHttpRequest.UNSENT
? "INVALID_STATE_ERR - you might be trying to set the request state for a request that has already been aborted, it is recommended to check 'readyState' first..."
: `INVALID_STATE_ERR - ${xhr.readyState}`;
const errorMessage =
xhr.readyState === FakeXMLHttpRequest.UNSENT
? "INVALID_STATE_ERR - you might be trying to set the request state for a request that has already been aborted, it is recommended to check 'readyState' first..."
: `INVALID_STATE_ERR - ${xhr.readyState}`;
throw new Error(errorMessage);
}
}
Expand Down

0 comments on commit 2dc15b0

Please sign in to comment.