Browse Source

format go code

master
Otto Suess 6 years ago
parent
commit
784e69705b
No known key found for this signature in database GPG Key ID: F7EFC44C2C240A11
  1. 3
      lndconnect.go
  2. 4
      lndconnect_test.go

3
lndconnect.go

@ -71,7 +71,6 @@ func displayLink(loadedConfig *config) {
u := url.URL{Scheme: "lndconnect", Host: ipString}
q := u.Query()
// cert
if !loadedConfig.LndConnect.NoCert {
certBytes, err := ioutil.ReadFile(loadedConfig.TLSCertPath)
@ -109,7 +108,6 @@ func displayLink(loadedConfig *config) {
q.Add("macaroon", macaroonB64)
// custom query
for _, s := range loadedConfig.LndConnect.Query {
queryParts := strings.Split(s, "=")
@ -124,7 +122,6 @@ func displayLink(loadedConfig *config) {
u.RawQuery = q.Encode()
// generate link / QR Code
if loadedConfig.LndConnect.Url {
fmt.Println(u.String())

4
lndconnect_test.go

@ -1,9 +1,5 @@
package main
import (
// "testing"
)
func ExampleLocalhost() {
c := &config{
TLSCertPath: "testdata/tls.cert",

Loading…
Cancel
Save