v3 async until

This commit is contained in:
Bryan Ashby 2019-07-08 19:27:54 -06:00
parent d728ddea4c
commit 1ec721212d
No known key found for this signature in database
GPG Key ID: B49EB437951D2542
2 changed files with 2 additions and 2 deletions

View File

@ -205,7 +205,7 @@ exports.getModule = class TransferFileModule extends MenuModule {
let tryDstPath;
async.until(
() => movedOk, // until moved OK
(callback) => callback(null, movedOk), // until moved OK
(cb) => {
if(0 === renameIndex) {
// try originally supplied path first

View File

@ -38,7 +38,7 @@ function moveOrCopyFileWithCollisionHandling(src, dst, operation, cb) {
}
async.until(
() => opOk, // until moved OK
(callback) => callback(null, opOk), // until moved OK
(cb) => {
if(0 === renameIndex) {
// try originally supplied path first