Skip to content

Commit

Permalink
lib/copy-sync/copy-file-sync.js: Use Buffer.alloc() instead of deprec…
Browse files Browse the repository at this point in the history
…ated new Buffer()
  • Loading branch information
manidlou committed Mar 6, 2017
1 parent e771770 commit 785705b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/copy-sync/copy-file-sync.js
Expand Up @@ -3,7 +3,7 @@
const fs = require('graceful-fs')

const BUF_LENGTH = 64 * 1024
const _buff = new Buffer(BUF_LENGTH)
const _buff = Buffer.alloc(BUF_LENGTH)

function copyFileSync (srcFile, destFile, options) {
const overwrite = options.overwrite
Expand Down

0 comments on commit 785705b

Please sign in to comment.