From 6565ab41764bde71a0ff2f8ae6c94b2a6082a151 Mon Sep 17 00:00:00 2001 From: aynakeya Date: Mon, 8 Apr 2024 00:49:29 -0700 Subject: [PATCH] assign token only if success --- client/client.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 670dacc..fde6b93 100644 --- a/client/client.go +++ b/client/client.go @@ -95,8 +95,8 @@ func (c *Client) init() error { for _, h := range info.Data.HostList { c.hostList = append(c.hostList, h.Host) } + c.token = info.Data.Token } - c.token = info.Data.Token } return nil }