multi: fix all linter errors

This commit is contained in:
Oliver Gugger
2019-11-29 18:12:11 +01:00
parent 41cd93c319
commit c6c62b9472
14 changed files with 68 additions and 56 deletions

View File

@@ -8,16 +8,9 @@ import (
"github.com/lightninglabs/kirin/auth"
"github.com/lightninglabs/loop/lsat"
"github.com/lightningnetwork/lnd/lntypes"
"gopkg.in/macaroon.v2"
)
type mockChallenger struct{}
func (c *mockChallenger) NewChallenge() (string, lntypes.Hash, error) {
return "lnt1xxxx", lntypes.ZeroHash, nil
}
// createDummyMacHex creates a valid macaroon with dummy content for our tests.
func createDummyMacHex(preimage string) string {
dummyMac, err := macaroon.New(