diff --git a/accounts/service.go b/accounts/service.go index 7712258b..6e1527de 100644 --- a/accounts/service.go +++ b/accounts/service.go @@ -663,6 +663,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 57924508..4771509d 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 79d0b067..32403137 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 63166375..0e7cafb1 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 c70f0d4c..d3996416 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