From 6211d77166afc5737003c17866b925cc874f0a30 Mon Sep 17 00:00:00 2001 From: steelbrain Date: Sat, 2 Jan 2016 08:58:52 -0700 Subject: [PATCH] :facepalm: Resolve promise after stuff's done --- lib/helpers.js | 2 +- src/helpers.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/helpers.js b/lib/helpers.js index 71cc142..922aa73 100644 --- a/lib/helpers.js +++ b/lib/helpers.js @@ -397,7 +397,7 @@ function tempFiles(files, callback) { if (foundError) { throw result; } else return result; - }); + }).then(resolve, reject); }); }); } diff --git a/src/helpers.js b/src/helpers.js index 539c994..a4efe1c 100644 --- a/src/helpers.js +++ b/src/helpers.js @@ -361,7 +361,7 @@ export function tempFiles(files, callback) { if (foundError) { throw result } else return result - }) + }).then(resolve, reject) }) }) }