multi: fix newly detected linter issues
This commit is contained in:
30 files changed
+106
-118
No files matched your search
@@ -1130,7 +1130,7 @@ func (s *Switch) handlePacketForward(packet *htlcPacket) error {
|
||||
// this htlc. The reason for randomization is to evenly
|
||||
// distribute the htlc load without making assumptions about
|
||||
// what the best channel is.
|
||||
destination := destinations[rand.Intn(len(destinations))]
|
||||
destination := destinations[rand.Intn(len(destinations))] // nolint:gosec
|
||||
|
||||
// Retrieve the incoming link by its ShortChannelID. Note that
|
||||
// the incomingChanID is never set to hop.Source here.
|
||||
|
||||
@@ -2909,7 +2909,7 @@ func testHtcNotifier(t *testing.T, testOpts []serverOption, iterations int,
|
||||
|
||||
// Add the htlcNotifier option to any other options
|
||||
// set in the test.
|
||||
options := append(testOpts, notifierOption)
|
||||
options := append(testOpts, notifierOption) // nolint:gocritic
|
||||
|
||||
n := newThreeHopNetwork(
|
||||
t, channels.aliceToBob,
|
||||
|
||||
Reference in new issue
Block a user