Skip to content

Commit

Permalink
multi: fix linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
guggero committed Sep 28, 2023
1 parent 968e0c1 commit 8b7dcac
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
1 change: 1 addition & 0 deletions accounts/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
6 changes: 3 additions & 3 deletions cmd/litcli/helpers.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
1 change: 1 addition & 0 deletions itest/litd_accounts_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion session/tlv_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion status/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8b7dcac

Please sign in to comment.