mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-13 09:25:45 +01:00
ESlint object-curly-spacing
This commit is contained in:
@@ -4,17 +4,17 @@
|
||||
var fork = require('child_process').fork;
|
||||
|
||||
module.hash = function (rounds, password, callback) {
|
||||
forkChild({type: 'hash', rounds: rounds, password: password}, callback);
|
||||
forkChild({ type: 'hash', rounds: rounds, password: password }, callback);
|
||||
};
|
||||
|
||||
module.compare = function (password, hash, callback) {
|
||||
forkChild({type: 'compare', password: password, hash: hash}, callback);
|
||||
forkChild({ type: 'compare', password: password, hash: hash }, callback);
|
||||
};
|
||||
|
||||
function forkChild(message, callback) {
|
||||
var forkProcessParams = {};
|
||||
if (global.v8debug || parseInt(process.execArgv.indexOf('--debug'), 10) !== -1) {
|
||||
forkProcessParams = {execArgv: ['--debug=' + (5859), '--nolazy']};
|
||||
forkProcessParams = { execArgv: ['--debug=' + (5859), '--nolazy'] };
|
||||
}
|
||||
var child = fork('./bcrypt', [], forkProcessParams);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user