From e93527e8f9a82589d5dd6e56f8bcab7669e3dd0f Mon Sep 17 00:00:00 2001 From: Steven Powell Date: Tue, 13 Jun 2023 14:05:26 -0700 Subject: [PATCH] fix lint errors --- pkg/perf/monitor/github.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pkg/perf/monitor/github.go b/pkg/perf/monitor/github.go index e09a627218..2f0c30d0a0 100644 --- a/pkg/perf/monitor/github.go +++ b/pkg/perf/monitor/github.go @@ -134,7 +134,7 @@ func (g *Client) timeOfLastCommit(pr int) (time.Time, error) { lastCommitTime := time.Time{} for _, c := range commits { if newCommitTime := c.GetCommit().GetAuthor().GetDate(); newCommitTime.After(lastCommitTime) { - lastCommitTime = newCommitTime + lastCommitTime = *newCommitTime.GetTime() } } return lastCommitTime, nil @@ -169,7 +169,8 @@ func (g *Client) timeOfLastComment(pr int, login string) (time.Time, error) { if u := c.GetUser(); u != nil { if u.GetLogin() == login { if c.GetCreatedAt().After(lastCommentTime) { - lastCommentTime = c.GetCreatedAt() + createdAt := c.GetCreatedAt() + lastCommentTime = *createdAt.GetTime() } } }