From 37216022f1a23312ba9ebb6677f8bebfaa3f6477 Mon Sep 17 00:00:00 2001 From: Derek Dowling Date: Thu, 7 Jan 2016 16:19:42 -0800 Subject: [PATCH] Fixing comments --- client/client.go | 3 +-- client/delete.go | 1 - client/post.go | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/client/client.go b/client/client.go index a53f3e9..45cda06 100644 --- a/client/client.go +++ b/client/client.go @@ -48,8 +48,7 @@ func buildParser(response *http.Response) *jsh.Parser { } /* -setPath builds a JSON url.Path for a given resource type. Typically this just -envolves concatting a pluralized resource name. +setPath builds a JSON url.Path for a given resource type. */ func setPath(url *url.URL, resource string) { diff --git a/client/delete.go b/client/delete.go index 5760552..893c036 100644 --- a/client/delete.go +++ b/client/delete.go @@ -35,7 +35,6 @@ func DeleteRequest(urlStr string, resourceType string, id string) (*http.Request return nil, jsh.ISE(fmt.Sprintf("Error parsing URL: %s", err.Error())) } - // ghetto pluralization, fix when it becomes an issue setIDPath(u, resourceType, id) request, err := http.NewRequest("DELETE", u.String(), nil) diff --git a/client/post.go b/client/post.go index 6a82616..b24fad4 100644 --- a/client/post.go +++ b/client/post.go @@ -31,7 +31,6 @@ func PostRequest(baseURL string, object *jsh.Object) (*http.Request, error) { return nil, fmt.Errorf("Error parsing URL: %s", err.Error()) } - // ghetto pluralization, fix when it becomes an issue setPath(u, object.Type) request, err := http.NewRequest("POST", u.String(), nil)