Skip to content

Commit

Permalink
Use Buffer.alloc() instead of deprecated () (#3574)
Browse files Browse the repository at this point in the history
  • Loading branch information
asashour authored and kibertoad committed Dec 10, 2019
1 parent 7c3637e commit d5773f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/dialects/oracledb/index.js
Expand Up @@ -341,7 +341,7 @@ Client_Oracledb.prototype._query = function(connection, obj) {
*/
function readStream(stream, type) {
return new Promise((resolve, reject) => {
let data = type === 'string' ? '' : Buffer(0);
let data = type === 'string' ? '' : Buffer.alloc(0);

stream.on('error', function(err) {
reject(err);
Expand Down

0 comments on commit d5773f8

Please sign in to comment.