Skip to content
This repository was archived by the owner on Jan 19, 2021. It is now read-only.

Commit d125f36

Browse files
committed
Fix linting error
1 parent cb63d56 commit d125f36

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

src/multiproof.ts

+9-5
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ export function verifyMultiproof(root: Buffer, proof: Multiproof, keys: Buffer[]
8888
throw new Error('Stack underflow')
8989
}
9090
assert(n2[0] === NodeType.Branch, 'expected branch node on stack')
91-
assert(instr.value as number < 17)
91+
assert((instr.value as number) < 17)
9292
n2[1][instr.value as number] = n1
9393
n2[2] = Array.from(new Set([...n1[2], ...n2[2]]))
9494
stack.push(n2)
@@ -314,10 +314,14 @@ export function rawMultiproof(proof: Multiproof, flatInstructions: boolean = fal
314314
if (flatInstructions) {
315315
return [proof.hashes, proof.keyvals, flatEncodeInstructions(proof.instructions)]
316316
} else {
317-
return [proof.hashes, proof.keyvals, proof.instructions.map(i => {
318-
if (i.value !== undefined) return [i.kind, i.value]
319-
return [i.kind]
320-
})]
317+
return [
318+
proof.hashes,
319+
proof.keyvals,
320+
proof.instructions.map(i => {
321+
if (i.value !== undefined) return [i.kind, i.value]
322+
return [i.kind]
323+
}),
324+
]
321325
}
322326
}
323327

0 commit comments

Comments
 (0)