diff --git a/pkg/perf/monitor/github.go b/pkg/perf/monitor/github.go index c50f9f1563..eb3146136e 100644 --- a/pkg/perf/monitor/github.go +++ b/pkg/perf/monitor/github.go @@ -122,7 +122,7 @@ func (g *Client) timeOfLastCommit(pr int) (time.Time, error) { PerPage: resultsPerPage, }) if err != nil { - return time.Time{}, nil + return time.Time{}, err } commits = append(commits, c...) if len(c) < resultsPerPage { @@ -153,7 +153,7 @@ func (g *Client) timeOfLastComment(pr int, login string) (time.Time, error) { }, }) if err != nil { - return time.Time{}, nil + return time.Time{}, err } comments = append(comments, c...) if len(c) < resultsPerPage {