Skip to content
This repository was archived by the owner on Feb 5, 2022. It is now read-only.

Commit c10e3bc

Browse files
author
German Rio
committed
Pass arguments to callback
1 parent 8ef95bf commit c10e3bc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/scp.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ function cp2local(client, src, dest, callback) {
8383
}
8484
client.download(remote.path, dest, function () {
8585
client.close();
86-
callback();
86+
callback.apply(this, arguments);
8787
});
8888
}
8989

0 commit comments

Comments
 (0)