Skip to content

Commit 7aba5cb

Browse files
committed
routing: fix linter complains
1 parent 188aa9a commit 7aba5cb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

htlcswitch/switch.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2910,7 +2910,8 @@ func (s *Switch) handlePacketAdd(packet *htlcPacket,
29102910
// Choose a random link out of the set of links that can forward this
29112911
// htlc. The reason for randomization is to evenly distribute the htlc
29122912
// load without making assumptions about what the best channel is.
2913-
destination := destinations[rand.Intn(len(destinations))] // nolint:gosec
2913+
//nolint:gosec
2914+
destination := destinations[rand.Intn(len(destinations))]
29142915

29152916
// Retrieve the incoming link by its ShortChannelID. Note that the
29162917
// incomingChanID is never set to hop.Source here.

0 commit comments

Comments
 (0)