Skip to content

Commit

Permalink
Fix leaky promisses
Browse files Browse the repository at this point in the history
  • Loading branch information
pazdera committed Nov 29, 2017
1 parent ba8351d commit c771413
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions lib/deploy-methods/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -100,16 +100,13 @@ function _doReleaseBySync(build, target, data) {

cleanupCb();
resolve();
console.log('SYNCED!', stdout, stderr);
});
});
} catch (error) {
cleanupCb();
throw error;
}
});

resolve();
});
}

Expand Down Expand Up @@ -225,7 +222,7 @@ function release(build, opts) {
return _doRelease(build, bucket, algorithm);
}).then((r) => {
releaseObject = r;
_uploadKartFile(releaseObject, bucket);
return _uploadKartFile(releaseObject, bucket);
}).then(() => {
return Promise.resolve(releaseObject);
});
Expand Down

0 comments on commit c771413

Please sign in to comment.