From cef05658eedceb31d1710c8c58d3ff6e21cfe151 Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 18 Mar 2021 13:33:14 +0900 Subject: [PATCH] lint --- src/misc/before-shutdown.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/misc/before-shutdown.ts b/src/misc/before-shutdown.ts index 58d0ea510..8639d42b0 100644 --- a/src/misc/before-shutdown.ts +++ b/src/misc/before-shutdown.ts @@ -32,7 +32,9 @@ const shutdownListeners = []; * @param {function(string)} fn Function to execute on shutdown. */ const processOnce = (signals, fn) => { - return signals.forEach(sig => process.once(sig, fn)); + for (const sig of signals) { + process.once(sig, fn); + } }; /**