From 0df3b2b33c022c915241146baa308e0e26772854 Mon Sep 17 00:00:00 2001 From: Paul Date: Wed, 20 Mar 2024 21:37:09 -0700 Subject: [PATCH] fix url null pointer bug (#39) --- pkg/actions/setup.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/actions/setup.go b/pkg/actions/setup.go index 41a4db6..5620439 100644 --- a/pkg/actions/setup.go +++ b/pkg/actions/setup.go @@ -369,7 +369,7 @@ func Setup(c *cli.Context) error { if err := utils.ReadLineFromStdin(scanner, &serverAddress); err != nil { return err } - serverUrl, err := url.Parse(serverAddress) + serverUrl, err = url.Parse(serverAddress) if err != nil { return err } else if serverUrl.Scheme == "" || serverUrl.Host == "" {