multi: fix linter issues

Fix some issues found by the new nonamedreturn rule and rename some
nolint comment to the new rule name.
This commit is contained in:
Oliver Gugger committed 2022-07-14 09:30:53 +02:00
1 parent da75619245
commit 850330a34e
3 files changed
+15 -16

No files matched your search

+2 -2
View File
@@ -60,8 +60,8 @@ type testContext struct {
// newTestContext populates a new testContext struct with the constant
// parameters defined in the BOLT 03 spec.
func newTestContext(t *testing.T) (tc *testContext) {
tc = new(testContext)
func newTestContext(t *testing.T) *testContext {
tc := new(testContext)
priv := func(v string) *btcec.PrivateKey {
k, err := privkeyFromHex(v)