summaryrefslogtreecommitdiff
path: root/src/misc
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-03-18 13:33:14 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-03-18 13:33:14 +0900
commit9cc8b3656aa016a6443980488b3cb5d1e431fb34 (patch)
tree89fdf26043413d5454e181fc3ffc3cef372b88f4 /src/misc
parentImprove chart performance (#7360) (diff)
downloadsharkey-9cc8b3656aa016a6443980488b3cb5d1e431fb34.tar.gz
sharkey-9cc8b3656aa016a6443980488b3cb5d1e431fb34.tar.bz2
sharkey-9cc8b3656aa016a6443980488b3cb5d1e431fb34.zip
lint
Diffstat (limited to 'src/misc')
-rw-r--r--src/misc/before-shutdown.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/misc/before-shutdown.ts b/src/misc/before-shutdown.ts
index 58d0ea5108..8639d42b04 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);
+ }
};
/**