multi: fix linter issues

This commit is contained in:
Oliver Gugger 2023-09-28 13:24:28 +02:00
parent b3c0d0e9b1
commit 322a96133d
No known key found for this signature in database
GPG key ID: 8E4256593F177720
5 changed files with 5 additions and 5 deletions

View file

@ -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)

View file

@ -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)
}

View file

@ -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)

View file

@ -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

View file

@ -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