Skip to content

Commit 18ce079

Browse files
Nevyana AngelovaNevyana Angelova
authored andcommitted
PR feecback 2
1 parent 9201e55 commit 18ce079

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

server/client_cloud.go

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ type cloudCurrentUser struct {
3737
// which would need a re-consent from every existing install.
3838
const cloudAPIPrefix = "/wiki"
3939

40+
// getJSON GETs path relative to the Cloud API base and decodes the JSON
41+
// response body into out. A non-200 response yields an *APIError so callers can
42+
// act on the upstream status.
4043
func (c *confluenceCloudClient) getJSON(path string, out interface{}) error {
4144
req, err := http.NewRequest(http.MethodGet, c.APIBase+cloudAPIPrefix+path, nil)
4245
if err != nil {

0 commit comments

Comments
 (0)