Skip to content

Commit 3721602

Browse files
author
Derek Dowling
committed
Fixing comments
1 parent d75d91d commit 3721602

File tree

3 files changed

+1
-4
lines changed

3 files changed

+1
-4
lines changed

client/client.go

+1-2
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,7 @@ func buildParser(response *http.Response) *jsh.Parser {
4848
}
4949

5050
/*
51-
setPath builds a JSON url.Path for a given resource type. Typically this just
52-
envolves concatting a pluralized resource name.
51+
setPath builds a JSON url.Path for a given resource type.
5352
*/
5453
func setPath(url *url.URL, resource string) {
5554

client/delete.go

-1
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ func DeleteRequest(urlStr string, resourceType string, id string) (*http.Request
3535
return nil, jsh.ISE(fmt.Sprintf("Error parsing URL: %s", err.Error()))
3636
}
3737

38-
// ghetto pluralization, fix when it becomes an issue
3938
setIDPath(u, resourceType, id)
4039

4140
request, err := http.NewRequest("DELETE", u.String(), nil)

client/post.go

-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,6 @@ func PostRequest(baseURL string, object *jsh.Object) (*http.Request, error) {
3131
return nil, fmt.Errorf("Error parsing URL: %s", err.Error())
3232
}
3333

34-
// ghetto pluralization, fix when it becomes an issue
3534
setPath(u, object.Type)
3635

3736
request, err := http.NewRequest("POST", u.String(), nil)

0 commit comments

Comments
 (0)