Remove "before" field from Response
Listing responses only ever contain a non-empty "before" field when the "count" parameter is provided, which is only useful for the HTML website, not really needed for API clients Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -109,8 +109,6 @@ func (s *PostService) Duplicates(ctx context.Context, id string, opts *ListDupli
|
||||
duplicates := listing2.Posts()
|
||||
|
||||
resp.After = listing2.After()
|
||||
resp.Before = listing2.Before()
|
||||
|
||||
return post, duplicates, resp, nil
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user