fix lint errors

pull/16701/head
Steven Powell 2023-06-13 14:05:26 -07:00
parent 48feb9ba4e
commit e93527e8f9
1 changed files with 3 additions and 2 deletions

View File

@ -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()
}
}
}