From 8b7dcac9234674ff81d1a2c3f119371380ed922d Mon Sep 17 00:00:00 2001 From: Oliver Gugger Date: Thu, 28 Sep 2023 13:24:28 +0200 Subject: [PATCH] multi: fix linter issues --- accounts/service.go | 1 + cmd/litcli/helpers.go | 6 +++--- itest/litd_accounts_test.go | 1 + session/tlv_test.go | 1 - status/manager.go | 1 - 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/accounts/service.go b/accounts/service.go index a229d831c..0197a1e0e 100644 --- a/accounts/service.go +++ b/accounts/service.go @@ -510,6 +510,7 @@ func (s *InterceptorService) TrackPayment(id AccountID, hash lntypes.Hash, if errors.Is( err, channeldb.ErrPaymentNotInitiated, ) { + log.Debugf("Payment %v not initiated, "+ "stopping tracking", hash) diff --git a/cmd/litcli/helpers.go b/cmd/litcli/helpers.go index 579245081..4771509da 100644 --- a/cmd/litcli/helpers.go +++ b/cmd/litcli/helpers.go @@ -119,7 +119,7 @@ func printJSON(resp interface{}) { } var out bytes.Buffer - json.Indent(&out, b, "", "\t") - out.WriteString("\n") - out.WriteTo(os.Stdout) + _ = json.Indent(&out, b, "", "\t") + _, _ = out.WriteString("\n") + _, _ = out.WriteTo(os.Stdout) } diff --git a/itest/litd_accounts_test.go b/itest/litd_accounts_test.go index 79d0b0677..324031378 100644 --- a/itest/litd_accounts_test.go +++ b/itest/litd_accounts_test.go @@ -121,6 +121,7 @@ func runAccountSystemTest(t *harnessTest, node *HarnessNode, hostPort, Label: acctLabel, }, ) + require.NoError(t.t, err) require.Equal(t.t, acctResp.Account.Id, infoResp.Id) require.EqualValues(t.t, acctBalance, infoResp.CurrentBalance) require.EqualValues(t.t, acctBalance, infoResp.InitialBalance) diff --git a/session/tlv_test.go b/session/tlv_test.go index 631663758..0e7cafb1c 100644 --- a/session/tlv_test.go +++ b/session/tlv_test.go @@ -242,7 +242,6 @@ func TestGroupID(t *testing.T) { // Instead, the group ID should match the session ID of session 1. require.Equal(t, session1.ID, session2.GroupID) - } // TestSerializeDeserializeCaveats makes sure that a list of caveats can be diff --git a/status/manager.go b/status/manager.go index c70f0d4ce..d3996416a 100644 --- a/status/manager.go +++ b/status/manager.go @@ -90,7 +90,6 @@ func (s *Manager) RegisterAndEnableSubServer(name string) { ss.Disabled = false s.subServers[name] = ss - } // GetStatus returns the current status of a given sub-server. This will