Skip to content

Commit fc43a72

Browse files
committed
Fix standard style issues
1 parent cb58d07 commit fc43a72

2 files changed

Lines changed: 7 additions & 12 deletions

File tree

test/util.js

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -97,13 +97,8 @@ function ecdhUnsafe (publicKey, privateKey) {
9797
}
9898

9999
var env = {
100-
repeat: parseInt((global.__env__ && global.__env__.RANDOM_TESTS_REPEAT) ||
101-
process.env.RANDOM_TESTS_REPEAT ||
102-
1,
103-
10),
104-
seed: (global.__env__ && global.__env__.SEED) ||
105-
process.env.SEED ||
106-
crypto.randomBytes(32)
100+
repeat: parseInt((global.__env__ && global.__env__.RANDOM_TESTS_REPEAT) || process.env.RANDOM_TESTS_REPEAT || 1, 10),
101+
seed: (global.__env__ && global.__env__.SEED) || process.env.SEED || crypto.randomBytes(32)
107102
}
108103

109104
function _repeat (test, name, total, fn) {

utils/genCombMulTo10.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ function genCombMulTo (alen, blen) {
5151
for (k = 0; k < len; k++) {
5252
src.push('o[' + k + '] = w' + k + ';')
5353
}
54-
src.push('if (c !== 0) {',
55-
' o[' + k + '] = c;',
56-
' out.length++;',
57-
'}',
58-
'return out;')
54+
src.push('if (c !== 0) {')
55+
src.push(' o[' + k + '] = c;')
56+
src.push(' out.length++;')
57+
src.push('}')
58+
src.push('return out;')
5959

6060
return src.join('\n')
6161
}

0 commit comments

Comments
 (0)