make Prettier

This commit is contained in:
AJ ONeal 2019-11-25 15:38:55 -07:00
父節點 038b6cac33
當前提交 dd206891d5

查看文件

@ -1,5 +1,5 @@
(function(exports) { (function(exports) {
'use strict'; "use strict";
exports.batchAsync = function(limit, arr, doStuff) { exports.batchAsync = function(limit, arr, doStuff) {
arr = arr.slice(0); arr = arr.slice(0);
@ -48,7 +48,7 @@ exports.batchAsync = function (limit, arr, doStuff) {
// add support for sync by rapping in a promise // add support for sync by rapping in a promise
Promise.resolve(p) Promise.resolve(p)
.then(function(result) { .then(function(result) {
if ('undefined' === typeof result) { if ("undefined" === typeof result) {
throw new Error( throw new Error(
"result was 'undefined'. Please return 'null' to signal that you didn't just forget to return another promise." "result was 'undefined'. Please return 'null' to signal that you didn't just forget to return another promise."
); );
@ -67,5 +67,4 @@ exports.batchAsync = function (limit, arr, doStuff) {
doMoreStuff(); doMoreStuff();
}); });
}; };
})("undefined" !== typeof window ? window : module.exports);
}('undefined' !== typeof window ? window : module.exports));