Skip to content

Commit

Permalink
Merge pull request #4 from Kikobeats/next
Browse files Browse the repository at this point in the history
refactor: remove unnecessary code
  • Loading branch information
Kikobeats committed Jan 26, 2023
2 parents 6bdddb9 + 13fdcbe commit 6f19189
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions src/index.js
Expand Up @@ -85,17 +85,6 @@ module.exports = ({
}

const { end, write, on, writeHead } = res
let statusCode = res.statusCode

Object.defineProperty(res, 'statusCode', {
get () {
return statusCode
},
set (status) {
statusCode = status
pendingStatus = status
}
})

res.writeHead = function (status, reason, headers) {
if (typeof reason !== 'string') [headers, reason] = [reason, headers]
Expand Down

0 comments on commit 6f19189

Please sign in to comment.