From c7714139770ef6c95280074c0342595423251b15 Mon Sep 17 00:00:00 2001 From: Radek Pazdera Date: Wed, 29 Nov 2017 14:55:11 +0000 Subject: [PATCH] Fix leaky promisses --- lib/deploy-methods/s3.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/lib/deploy-methods/s3.js b/lib/deploy-methods/s3.js index 92fe292..03feb61 100644 --- a/lib/deploy-methods/s3.js +++ b/lib/deploy-methods/s3.js @@ -100,7 +100,6 @@ function _doReleaseBySync(build, target, data) { cleanupCb(); resolve(); - console.log('SYNCED!', stdout, stderr); }); }); } catch (error) { @@ -108,8 +107,6 @@ function _doReleaseBySync(build, target, data) { throw error; } }); - - resolve(); }); } @@ -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); });