Add tests, edit error messages
Signed-off-by: Vartan Benohanian <vartanbeno@gmail.com>
This commit is contained in:
@@ -436,7 +436,7 @@ func (s *PostService) DisableContestMode(ctx context.Context, id string) (*Respo
|
||||
// LoadMoreComments retrieves more comments that were left out when initially fetching the post.
|
||||
func (s *PostService) LoadMoreComments(ctx context.Context, pc *PostAndComments) (*Response, error) {
|
||||
if pc == nil {
|
||||
return nil, errors.New("pc: must not be nil")
|
||||
return nil, errors.New("pc: cannot be nil")
|
||||
}
|
||||
|
||||
if !pc.hasMore() {
|
||||
|
||||
Reference in New Issue
Block a user