Unnecessary promise wrapping

This commit is contained in:
Tim Schaub 2017-10-23 10:05:30 -06:00
parent e11c8f9315
commit 2f9059d09e

View file

@ -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);
});
};