multi: fix newly detected linter issues

This commit is contained in:
Oliver Gugger committed 2022-02-10 11:02:02 +01:00
1 parent 369627901f
commit ffee7d1bcf
30 files changed
+106 -118

No files matched your search

+2 -2
View File
@@ -657,7 +657,7 @@ func (cb *CommitmentBuilder) createUnsignedCommitmentTx(ourBalance,
if err != nil {
return nil, err
}
cltvs = append(cltvs, htlc.Timeout)
cltvs = append(cltvs, htlc.Timeout) // nolint:makezero
}
for _, htlc := range filteredHTLCView.theirUpdates {
if HtlcIsDust(
@@ -674,7 +674,7 @@ func (cb *CommitmentBuilder) createUnsignedCommitmentTx(ourBalance,
if err != nil {
return nil, err
}
cltvs = append(cltvs, htlc.Timeout)
cltvs = append(cltvs, htlc.Timeout) // nolint:makezero
}
// Set the state hint of the commitment transaction to facilitate