diff --git a/server/internal/github/github.go b/server/internal/github/github.go index 51aa4f2..c5d6d8f 100644 --- a/server/internal/github/github.go +++ b/server/internal/github/github.go @@ -180,7 +180,8 @@ func (g *Client) FetchReviewModel(ctx context.Context, r *ReviewParams) (*Review group.Go(func() error { comments, err := g.ListComments(ctx, r) if err == nil { - for idx, comment := range comments { + for idx := range comments { + comment := comments[idx] diff, err := generateDiff(comment) if err != nil { return err