From a9251d66524ce7c74648c663d4ba654e2b6d060d Mon Sep 17 00:00:00 2001 From: Juan Font Alonso Date: Sun, 13 Nov 2022 21:25:19 +0100 Subject: [PATCH] Fixed linter issues --- integration/tsic/tsic.go | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/integration/tsic/tsic.go b/integration/tsic/tsic.go index 1bc0142..930eb30 100644 --- a/integration/tsic/tsic.go +++ b/integration/tsic/tsic.go @@ -172,7 +172,7 @@ func (t *TailscaleInContainer) UpWithLoginURL( } _, stderr, err := t.Execute(command) - if err != errTailscaleNotLoggedIn { + if errors.Is(err, errTailscaleNotLoggedIn) { return nil, errTailscaleCannotUpWithoutAuthkey } @@ -180,14 +180,15 @@ func (t *TailscaleInContainer) UpWithLoginURL( urlStr = strings.TrimSpace(urlStr) // parse URL - loginUrl, err := url.Parse(urlStr) + loginURL, err := url.Parse(urlStr) if err != nil { log.Printf("Could not parse login URL: %s", err) log.Printf("Original join command result: %s", stderr) + return nil, err } - return loginUrl, nil + return loginURL, nil } func (t *TailscaleInContainer) IPs() ([]netip.Addr, error) {