Skip to content

Commit

Permalink
Fix standard style issues
Browse files Browse the repository at this point in the history
  • Loading branch information
fanatid committed Aug 22, 2018
1 parent cb58d07 commit fc43a72
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
9 changes: 2 additions & 7 deletions test/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -97,13 +97,8 @@ function ecdhUnsafe (publicKey, privateKey) {
}

var env = {
repeat: parseInt((global.__env__ && global.__env__.RANDOM_TESTS_REPEAT) ||
process.env.RANDOM_TESTS_REPEAT ||
1,
10),
seed: (global.__env__ && global.__env__.SEED) ||
process.env.SEED ||
crypto.randomBytes(32)
repeat: parseInt((global.__env__ && global.__env__.RANDOM_TESTS_REPEAT) || process.env.RANDOM_TESTS_REPEAT || 1, 10),
seed: (global.__env__ && global.__env__.SEED) || process.env.SEED || crypto.randomBytes(32)
}

function _repeat (test, name, total, fn) {
Expand Down
10 changes: 5 additions & 5 deletions utils/genCombMulTo10.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,11 @@ function genCombMulTo (alen, blen) {
for (k = 0; k < len; k++) {
src.push('o[' + k + '] = w' + k + ';')
}
src.push('if (c !== 0) {',
' o[' + k + '] = c;',
' out.length++;',
'}',
'return out;')
src.push('if (c !== 0) {')
src.push(' o[' + k + '] = c;')
src.push(' out.length++;')
src.push('}')
src.push('return out;')

return src.join('\n')
}
Expand Down

0 comments on commit fc43a72

Please sign in to comment.