Skip to content

Commit

Permalink
Fixing comments
Browse files Browse the repository at this point in the history
  • Loading branch information
Derek Dowling committed Jan 8, 2016
1 parent d75d91d commit 3721602
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 4 deletions.
3 changes: 1 addition & 2 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -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) {

Expand Down
1 change: 0 additions & 1 deletion client/delete.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 0 additions & 1 deletion client/post.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 3721602

Please sign in to comment.