diff --git a/lib/move/index.js b/lib/move/index.js index 645f2b76..cff5e91b 100644 --- a/lib/move/index.js +++ b/lib/move/index.js @@ -42,7 +42,7 @@ function move (source, dest, options, callback) { function doRename () { if (overwrite) { - fs.rename(source, dest, optionsCopy, err => { + fs.rename(source, dest, err => { if (!err) return callback() if (err.code === 'ENOTEMPTY' || err.code === 'EEXIST') {