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:
3 files changed
+15
-16
No files matched your search
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user