From 7663b198792b082ce8a4367b09115fff894f8d5e Mon Sep 17 00:00:00 2001 From: Mariusz Nowak Date: Thu, 16 Sep 2021 11:55:50 +0200 Subject: [PATCH] style: Simplify --- lib/classes/PluginManager.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/classes/PluginManager.js b/lib/classes/PluginManager.js index 574aaa61d7d..a0c8a93f951 100644 --- a/lib/classes/PluginManager.js +++ b/lib/classes/PluginManager.js @@ -619,9 +619,7 @@ class PluginManager { this.commandRunStartTime = Date.now(); if (resolveCliInput().commands[0] !== 'plugin') { // first initialize hooks - for (const { hook } of this.getHooks(['initialize'])) { - await hook(); - } + for (const { hook } of this.getHooks(['initialize'])) await hook(); } let deferredBackendNotificationRequest;