Skip to content

Commit

Permalink
refactor naming
Browse files Browse the repository at this point in the history
  • Loading branch information
doneill committed Dec 15, 2023
1 parent 0e8ed7c commit c1ea451
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion api/apiuser.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down
2 changes: 1 addition & 1 deletion api/ersvc.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c1ea451

Please sign in to comment.