chore: eslint prefer-arrow-callback

This commit is contained in:
Peter Jaszkowiak
2021-02-04 00:01:39 -07:00
committed by Julian Lam
parent 707b55b6a5
commit b56d9e12b5
334 changed files with 4995 additions and 5182 deletions

View File

@@ -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') {