Skip to content

Commit

Permalink
Uncaught TypeError: "callback" argument must be a function
Browse files Browse the repository at this point in the history
  • Loading branch information
bluelovers committed Mar 7, 2017
1 parent b73febe commit 4b6fbcb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/move/index.js
Expand Up @@ -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') {
Expand Down

0 comments on commit 4b6fbcb

Please sign in to comment.