Skip to content

Commit

Permalink
fix(linting): no-unused-vars
Browse files Browse the repository at this point in the history
  • Loading branch information
lukekarrys committed May 4, 2024
1 parent c5d7e43 commit 980a276
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/body.js
Expand Up @@ -146,7 +146,7 @@ class Body {

// do the pipe in the promise, because the pipe() can send too much
// data through right away and upset the MP Sized object
return new Promise((resolve, reject) => {
return new Promise((resolve) => {
// if the stream is some other kind of stream, then pipe through a MP
// so we can collect it more easily.
if (stream !== upstream) {
Expand Down
2 changes: 1 addition & 1 deletion lib/index.js
Expand Up @@ -103,7 +103,7 @@ const fetch = async (url, opts) => {

let reqTimeout = null
if (request.timeout) {
req.once('socket', socket => {
req.once('socket', () => {
reqTimeout = setTimeout(() => {
reject(new FetchError(`network timeout at: ${
request.url}`, 'request-timeout'))
Expand Down
2 changes: 1 addition & 1 deletion test/index.js
Expand Up @@ -843,7 +843,7 @@ t.test('cancel request body stream with AbortError when aborted', {
})

const result = Promise.all([
new Promise((resolve, reject) => {
new Promise((resolve) => {
body.on('error', (error) => {
t.match(error, { name: 'AbortError' })
resolve()
Expand Down

0 comments on commit 980a276

Please sign in to comment.