diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-18 13:33:14 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2021-03-18 13:33:14 +0900 |
| commit | 9cc8b3656aa016a6443980488b3cb5d1e431fb34 (patch) | |
| tree | 89fdf26043413d5454e181fc3ffc3cef372b88f4 /src/misc | |
| parent | Improve chart performance (#7360) (diff) | |
| download | sharkey-9cc8b3656aa016a6443980488b3cb5d1e431fb34.tar.gz sharkey-9cc8b3656aa016a6443980488b3cb5d1e431fb34.tar.bz2 sharkey-9cc8b3656aa016a6443980488b3cb5d1e431fb34.zip | |
lint
Diffstat (limited to 'src/misc')
| -rw-r--r-- | src/misc/before-shutdown.ts | 4 |
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); + } }; /** |