multi: fix linter warnings

This commit is contained in:
Olaoluwa Osuntokun committed 2023-08-22 16:32:00 -07:00
1 parent da1282c17e
commit aaba144804
11 files changed
+122 -106

No files matched your search

+7 -3
View File
@@ -373,7 +373,9 @@ func testVectors(t *testing.T, chanType channeldb.ChannelType, test testCase) {
require.Equal(
t, test.RemoteSigHex,
hex.EncodeToString(remoteNewCommit.CommitSig.ToSignatureBytes()),
hex.EncodeToString(
remoteNewCommit.CommitSig.ToSignatureBytes(),
),
)
for i, sig := range remoteNewCommit.HtlcSigs {
@@ -398,8 +400,10 @@ func testVectors(t *testing.T, chanType channeldb.ChannelType, test testCase) {
var txBytes bytes.Buffer
require.NoError(t, forceCloseSum.CloseTx.Serialize(&txBytes))
require.Equal(t, test.ExpectedCommitmentTxHex,
hex.EncodeToString(txBytes.Bytes()))
require.Equal(
t, test.ExpectedCommitmentTxHex,
hex.EncodeToString(txBytes.Bytes()),
)
// Obtain the second level transactions that the local node's channel
// state machine has produced. Store them in a map indexed by commit tx