Unnecessary promise wrapping
This commit is contained in:
parent
e11c8f9315
commit
2f9059d09e
1 changed files with 2 additions and 4 deletions
|
@ -110,9 +110,7 @@ module.exports.getFontsPbf = function(allowedFonts, fontPath, names, range, fall
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
return new Promise(function(resolve, reject) {
|
return Promise.all(queue).then(function(values) {
|
||||||
Promise.all(queue).then(function(values) {
|
return glyphCompose.combine(values);
|
||||||
return resolve(glyphCompose.combine(values));
|
|
||||||
}, reject);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in a new issue