From ec82ad43f054587cdf1319c96360c803e013242d Mon Sep 17 00:00:00 2001 From: Zhizhen He Date: Thu, 12 Sep 2019 16:40:41 +0800 Subject: [PATCH] Fix typo --- util/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/util/types.go b/util/types.go index 4b48de4c..d5d21a55 100644 --- a/util/types.go +++ b/util/types.go @@ -40,7 +40,7 @@ func TypeOfMaster(c *client.Client) (MasterType, error) { var rp api.RootPaths err = json.Unmarshal(res, &rp) if err != nil { - errors.Wrap(err, "could not discover the type of your installation") + return "", errors.Wrap(err, "could not discover the type of your installation") } for _, p := range rp.Paths { if p == "/oapi" {