Skip to content

Commit 1ef0307

Browse files
committed
chore: refactor if-then into switch case
1 parent 6b191c5 commit 1ef0307

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

path_test.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -375,9 +375,10 @@ func TestOnionRouteBlinding(t *testing.T) {
375375

376376
priv := privKeyFromString(hop.NodePrivKey)
377377

378-
if i == introPointIndex {
378+
switch i {
379+
case introPointIndex:
379380
blindingPoint = firstBlinding
380-
} else if i == concatIndex {
381+
case concatIndex:
381382
blindingPoint = blindingOverride
382383
}
383384

0 commit comments

Comments
 (0)