Skip to content

Commit

Permalink
fix(Server): fix perf-standard/check-function-inline
Browse files Browse the repository at this point in the history
  • Loading branch information
hans00 committed Jul 4, 2022
1 parent 225bd13 commit a2520a2
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/server/js/response.js
Original file line number Diff line number Diff line change
Expand Up @@ -269,11 +269,9 @@ class Response extends Writable {
this.cork(() => {
this.writeHead()
this.connection.end(data)
super.destroy()
})
} else {
super.destroy()
}
super.destroy()
}

send (data) {
Expand Down

0 comments on commit a2520a2

Please sign in to comment.