Skip to content

Commit 322a961

Browse files
committed
multi: fix linter issues
1 parent b3c0d0e commit 322a961

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

accounts/service.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -663,6 +663,7 @@ func (s *InterceptorService) TrackPayment(id AccountID, hash lntypes.Hash,
663663
if errors.Is(
664664
err, channeldb.ErrPaymentNotInitiated,
665665
) {
666+
666667
log.Debugf("Payment %v not initiated, "+
667668
"stopping tracking", hash)
668669

cmd/litcli/helpers.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ func printJSON(resp interface{}) {
119119
}
120120

121121
var out bytes.Buffer
122-
json.Indent(&out, b, "", "\t")
123-
out.WriteString("\n")
124-
out.WriteTo(os.Stdout)
122+
_ = json.Indent(&out, b, "", "\t")
123+
_, _ = out.WriteString("\n")
124+
_, _ = out.WriteTo(os.Stdout)
125125
}

itest/litd_accounts_test.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ func runAccountSystemTest(t *harnessTest, node *HarnessNode, hostPort,
121121
Label: acctLabel,
122122
},
123123
)
124+
require.NoError(t.t, err)
124125
require.Equal(t.t, acctResp.Account.Id, infoResp.Id)
125126
require.EqualValues(t.t, acctBalance, infoResp.CurrentBalance)
126127
require.EqualValues(t.t, acctBalance, infoResp.InitialBalance)

session/tlv_test.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,7 +242,6 @@ func TestGroupID(t *testing.T) {
242242

243243
// Instead, the group ID should match the session ID of session 1.
244244
require.Equal(t, session1.ID, session2.GroupID)
245-
246245
}
247246

248247
// TestSerializeDeserializeCaveats makes sure that a list of caveats can be

status/manager.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,6 @@ func (s *Manager) RegisterAndEnableSubServer(name string) {
9090
ss.Disabled = false
9191

9292
s.subServers[name] = ss
93-
9493
}
9594

9695
// GetStatus returns the current status of a given sub-server. This will

0 commit comments

Comments
 (0)