remove return statement

This commit is contained in:
casperlamboo 2017-11-08 23:25:37 +01:00
parent 8eb1e4e7d0
commit f17d8ad917

View File

@ -52,7 +52,7 @@ export function createThrottle() {
if (!startLoop) return;
return (function loop() {
(function loop() {
return next().then(() => {
if (typeof next === 'function') return loop();
});