From 06ca91d2e82dd44aab011d1f769deb3be82b2365 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kat=20March=C3=A1n?= Date: Mon, 5 Jun 2017 19:43:35 -0700 Subject: [PATCH] fix(extract): always return a bluebird promise --- extract.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/extract.js b/extract.js index 79a4101..0103651 100644 --- a/extract.js +++ b/extract.js @@ -36,7 +36,7 @@ function extract (spec, dest, opts) { }) } else { opts.log.silly('pacote', 'no tarball hash provided for', spec.name, '- extracting by manifest') - return retry((tryAgain, attemptNum) => { + return BB.resolve(retry((tryAgain, attemptNum) => { return extractByManifest( startTime, spec, dest, opts ).catch(err => { @@ -54,7 +54,7 @@ function extract (spec, dest, opts) { throw err } }) - }, {retries: 1}) + }, {retries: 1})) } }