From c1ea4516bbc143142b814b385c71b0ec0a406493 Mon Sep 17 00:00:00 2001 From: Dan O'Neill Date: Fri, 15 Dec 2023 00:40:29 -0800 Subject: [PATCH] refactor naming --- api/apiuser.go | 2 +- api/ersvc.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/api/apiuser.go b/api/apiuser.go index a9b7f41..23693f1 100644 --- a/api/apiuser.go +++ b/api/apiuser.go @@ -39,7 +39,7 @@ type UserResponse struct { func User() (*UserResponse, error) { client := &http.Client{} - clientReq, err := getClientReqest(config.Sitename(), API_USER_ME, config.Token()) + clientReq, err := getClientRequest(config.Sitename(), API_USER_ME, config.Token()) if err != nil { fmt.Println("Error generating client", err) } diff --git a/api/ersvc.go b/api/ersvc.go index c271ebd..3dab45f 100644 --- a/api/ersvc.go +++ b/api/ersvc.go @@ -38,7 +38,7 @@ func getAuthRequest(sitename string) (*http.Request, error) { return req, nil } -func getClientReqest(sitename string, endpoint string, token string) (*http.Request, error) { +func getClientRequest(sitename string, endpoint string, token string) (*http.Request, error) { req, err := http.NewRequest("GET", getApiUrl(sitename, endpoint), nil) if err != nil { return nil, err