From 3f457dbdc1e7ce53479c23db38ab89c842f4867c Mon Sep 17 00:00:00 2001 From: Priya Wadhwa Date: Tue, 22 Sep 2020 14:14:04 -0400 Subject: [PATCH] fix error handling --- pkg/perf/monitor/github.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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 {