Skip to content

Commit

Permalink
SFTPStream: fix conditional
Browse files Browse the repository at this point in the history
  • Loading branch information
mscdex committed Jul 1, 2019
1 parent fadce60 commit 053983a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/sftp.js
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ function fastXfer(src, dst, srcPath, dstPath, opts, cb) {

srcHandle = sourceHandle;

if (fileSize !== undefined)
if (fileSize === undefined)
src.fstat(srcHandle, tryStat);
else
tryStat(null, { size: fileSize });
Expand Down

0 comments on commit 053983a

Please sign in to comment.