From 854e24bb5784d0a8e8c0d0c1f11f811c132bb5c5 Mon Sep 17 00:00:00 2001 From: Henry Oswald Date: Mon, 15 Feb 2021 14:12:28 +0000 Subject: [PATCH] remove unneeded anonymous func --- services/document-updater/app/js/DispatchManager.js | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) diff --git a/services/document-updater/app/js/DispatchManager.js b/services/document-updater/app/js/DispatchManager.js index 97bd7eafbd..c600adec7b 100644 --- a/services/document-updater/app/js/DispatchManager.js +++ b/services/document-updater/app/js/DispatchManager.js @@ -107,11 +107,8 @@ module.exports = DispatchManager = { createAndStartDispatchers(number) { const RateLimiter = new RateLimitManager(number) - return (() => { - const result = _.times(number, function (shardNumber) { - return DispatchManager.createDispatcher(RateLimiter, shardNumber).run() - }) - return result - })() + _.times(number, function (shardNumber) { + return DispatchManager.createDispatcher(RateLimiter, shardNumber).run() + }) } }