fix lint errors
parent
48feb9ba4e
commit
e93527e8f9
|
@ -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()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue