From f17d8ad917445179c587dacbde950f22c6db68d0 Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Wed, 8 Nov 2017 23:25:37 +0100 Subject: [PATCH] remove return statement --- src/utils/async.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/async.js b/src/utils/async.js index 60e521d..416b273 100644 --- a/src/utils/async.js +++ b/src/utils/async.js @@ -52,7 +52,7 @@ export function createThrottle() { if (!startLoop) return; - return (function loop() { + (function loop() { return next().then(() => { if (typeof next === 'function') return loop(); });