fix error handling

pull/9308/head
Priya Wadhwa 2020-09-22 14:14:04 -04:00
parent 3d547a937f
commit 3f457dbdc1
1 changed files with 2 additions and 2 deletions

View File

@ -122,7 +122,7 @@ func (g *Client) timeOfLastCommit(pr int) (time.Time, error) {
PerPage: resultsPerPage, PerPage: resultsPerPage,
}) })
if err != nil { if err != nil {
return time.Time{}, nil return time.Time{}, err
} }
commits = append(commits, c...) commits = append(commits, c...)
if len(c) < resultsPerPage { if len(c) < resultsPerPage {
@ -153,7 +153,7 @@ func (g *Client) timeOfLastComment(pr int, login string) (time.Time, error) {
}, },
}) })
if err != nil { if err != nil {
return time.Time{}, nil return time.Time{}, err
} }
comments = append(comments, c...) comments = append(comments, c...)
if len(c) < resultsPerPage { if len(c) < resultsPerPage {