Skip to content

Commit

Permalink
Satisfy the linter
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyfrosch committed Sep 4, 2020
1 parent 41fb7bf commit d789c25
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions api/response.go
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,7 @@ func (c *Client) GetJSONItems(request *http.Request) (items []json.RawMessage, e
// Fall back to adding response.Data to the item list
// This is useful when data is not an array, but an object
err = nil

items = append(items, response.Data)
} else {
// append each item to overall list
Expand Down

0 comments on commit d789c25

Please sign in to comment.