Skip to content

Commit

Permalink
Disable node/no-deprecated-api rule in a construct that uses the new …
Browse files Browse the repository at this point in the history
…API if available
  • Loading branch information
papandreou committed May 3, 2019
1 parent dfabb9c commit 0ce63de
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/unexpectedStream.js
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@ module.exports = {
if (Buffer.from) {
return Buffer.from(chunk, 'utf-8');
} else {
// eslint-disable-next-line node/no-deprecated-api
return new Buffer(chunk, 'utf-8');
}
} else {
Expand Down

0 comments on commit 0ce63de

Please sign in to comment.