Unnecessary promise wrapping
This commit is contained in:
+2
-4
@@ -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);
|
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user