From 2f9059d09e132ae02d075f778ee7de04d7e0a36f Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 23 Oct 2017 10:05:30 -0600 Subject: [PATCH] Unnecessary promise wrapping --- src/utils.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/utils.js b/src/utils.js index a63731e..6335a40 100644 --- a/src/utils.js +++ b/src/utils.js @@ -110,9 +110,7 @@ module.exports.getFontsPbf = function(allowedFonts, fontPath, names, range, fall ); }); - return new Promise(function(resolve, reject) { - Promise.all(queue).then(function(values) { - return resolve(glyphCompose.combine(values)); - }, reject); + return Promise.all(queue).then(function(values) { + return glyphCompose.combine(values); }); };