From 9abf6ad7355df87f492e0308dec86001dc627cb8 Mon Sep 17 00:00:00 2001 From: Devang Gaur Date: Wed, 31 Jul 2024 19:33:20 +0530 Subject: [PATCH] nit --- client/macro.go | 1 + client/user.go | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/client/macro.go b/client/macro.go index b188f2b1..51753e7c 100644 --- a/client/macro.go +++ b/client/macro.go @@ -2,6 +2,7 @@ package client import ( "errors" + clientv1 "github.com/spectrocloud/palette-api-go/client/v1" "github.com/spectrocloud/palette-api-go/models" "github.com/spectrocloud/palette-sdk-go/client/apiutil" diff --git a/client/user.go b/client/user.go index bb05f14d..9b930f9c 100644 --- a/client/user.go +++ b/client/user.go @@ -20,7 +20,7 @@ func (h *V1Client) Authenticate(body *models.V1AuthLogin) (*models.V1UserToken, return resp.Payload, nil } -// GetMe retrieves the authenticated user. +// GetUsersInfo retrieves the authenticated user info. func (h *V1Client) GetUsersInfo() (*models.V1UserInfo, error) { params := clientv1.NewV1UsersInfoGetParamsWithContext(h.ctx) resp, err := h.Client.V1UsersInfoGet(params)