Skip to content

Commit

Permalink
remove destroy (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
Uzlopak authored Jan 14, 2023
1 parent 5e28adc commit 9f0df93
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 3 deletions.
3 changes: 1 addition & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@

const createError = require('http-errors')
const debug = require('debug')('send')
const destroy = require('destroy')
const escapeHtml = require('escape-html')
const etag = require('etag')
const fresh = require('fresh')
Expand Down Expand Up @@ -715,7 +714,7 @@ SendStream.prototype.stream = function stream (path, options) {

// cleanup
function cleanup () {
destroy(stream, true)
stream.destroy()
}

// response finished, cleanup
Expand Down
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
],
"dependencies": {
"debug": "^4.3.4",
"destroy": "1.2.0",
"escape-html": "~1.0.3",
"etag": "~1.8.1",
"fast-decode-uri-component": "^1.0.1",
Expand Down

0 comments on commit 9f0df93

Please sign in to comment.