Skip to content

Commit

Permalink
attempt to fix nil pointer error (#60)
Browse files Browse the repository at this point in the history
* attempt to fix nil pointer error

* fix lint
  • Loading branch information
stanistan authored May 10, 2023
1 parent 8bccad2 commit a14ddd4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/internal/github/github.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit a14ddd4

Please sign in to comment.