Merge pull request #6731 from guggero/linter-upgrade

tools: upgrade linter version to v1.46.2
This commit is contained in:
Oliver Gugger authored and GitHub committed 2022-07-15 11:25:25 +02:00
commit e6b25309bd
7 files changed
+237 -131

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)