diff --git a/githubpagination/searchresult/gh_merger.go b/githubpagination/searchresult/gh_merger.go index 0b8383c..aa258a2 100644 --- a/githubpagination/searchresult/gh_merger.go +++ b/githubpagination/searchresult/gh_merger.go @@ -28,6 +28,10 @@ func (g *Merger) Digest(reader io.Reader) (slice json.RawMessage, err error) { g.totalCount += result.TotalCount g.incompleteResults = g.incompleteResults || result.IncompleteResults + if result.Items == nil { + return nil, nil + } + return *result.Items, nil }