Skip to content

Commit 6d838d2

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

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
@@ -357,9 +357,10 @@ func TestOnionRouteBlinding(t *testing.T) {
357357

358358
priv := privKeyFromString(hop.NodePrivKey)
359359

360-
if i == introPointIndex {
360+
switch i {
361+
case introPointIndex:
361362
blindingPoint = firstBlinding
362-
} else if i == concatIndex {
363+
case concatIndex:
363364
blindingPoint = blindingOverride
364365
}
365366

0 commit comments

Comments
 (0)