mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-16 18:56:15 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -97,13 +97,13 @@ function addProcessHandlers() {
|
||||
process.on('SIGTERM', shutdown);
|
||||
process.on('SIGINT', shutdown);
|
||||
process.on('SIGHUP', restart);
|
||||
process.on('uncaughtException', function (err) {
|
||||
process.on('uncaughtException', (err) => {
|
||||
winston.error(err.stack);
|
||||
|
||||
require('./meta').js.killMinifier();
|
||||
shutdown(1);
|
||||
});
|
||||
process.on('message', function (msg) {
|
||||
process.on('message', (msg) => {
|
||||
if (msg && msg.compiling === 'tpl') {
|
||||
const benchpressjs = require('benchpressjs');
|
||||
benchpressjs.flush();
|
||||
|
||||
Reference in New Issue
Block a user