mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-17 11:11:04 +01:00
chore: eslint prefer-arrow-callback
This commit is contained in:
committed by
Julian Lam
parent
707b55b6a5
commit
b56d9e12b5
@@ -11,7 +11,7 @@ const fork = require('./meta/debugFork');
|
||||
function forkChild(message, callback) {
|
||||
const child = fork(path.join(__dirname, 'password'));
|
||||
|
||||
child.on('message', function (msg) {
|
||||
child.on('message', (msg) => {
|
||||
callback(msg.err ? new Error(msg.err) : null, msg.result);
|
||||
});
|
||||
|
||||
@@ -45,7 +45,7 @@ async function getFakeHash() {
|
||||
}
|
||||
|
||||
// child process
|
||||
process.on('message', function (msg) {
|
||||
process.on('message', (msg) => {
|
||||
if (msg.type === 'hash') {
|
||||
tryMethod(hashPassword, msg);
|
||||
} else if (msg.type === 'compare') {
|
||||
|
||||
Reference in New Issue
Block a user