*: adhere to standard 3
This commit is contained in:
parent
d33b1c01ad
commit
f64df79555
3 changed files with 5 additions and 4 deletions
|
@ -14,8 +14,9 @@ function isCanonicalPubKey (buffer) {
|
|||
try {
|
||||
ecurve.Point.decodeFrom(curve, buffer)
|
||||
} catch (e) {
|
||||
if (!(e.message.match(/Invalid sequence (length|tag)/)))
|
||||
if (!(e.message.match(/Invalid sequence (length|tag)/))) {
|
||||
throw e
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
|
|
@ -60,8 +60,9 @@ describe('Bitcoin-core', function () {
|
|||
var network = networks.bitcoin
|
||||
|
||||
if (params.isPrivkey) return
|
||||
if (params.isTestnet)
|
||||
if (params.isTestnet) {
|
||||
network = networks.testnet
|
||||
}
|
||||
|
||||
it('can import ' + string, function () {
|
||||
var address = Address.fromBase58Check(string)
|
||||
|
|
|
@ -150,8 +150,7 @@ describe('bitcoinjs-lib (crypto)', function () {
|
|||
|
||||
// finally, run the tasks, then on to the math
|
||||
async.parallel(tasks, function (err) {
|
||||
if (err)
|
||||
throw err
|
||||
if (err) throw err
|
||||
|
||||
var n = bitcoin.ECPair.curve.n
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue