Skip to content

Commit

Permalink
Fix something
Browse files Browse the repository at this point in the history
  • Loading branch information
miko committed Aug 12, 2024
1 parent 6c3a9f4 commit e9649b3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions server/services/v1/comments/list.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,9 +310,9 @@ comments:
if repliesCachedCount != nil && !repliesCachedCount.Expired() {
alreadyInSet[comment.CommentID] = true
item := populateItem(comment, channel, int(repliesCachedCount.Value().(int64)))
err = applyModStatus(&item, comment.ChannelID.String, comment.LbryClaimID)
err := applyModStatus(&item, comment.ChannelID.String, comment.LbryClaimID)
if err != nil {
return err
return items, blockedCommentCnt, err
}
items = append(items, item)
continue
Expand All @@ -331,9 +331,9 @@ comments:
}
replies := val.(int64)
item := populateItem(comment, channel, int(replies))
err = applyModStatus(&item, comment.ChannelID.String, comment.LbryClaimID)
err := applyModStatus(&item, comment.ChannelID.String, comment.LbryClaimID)

Check failure on line 334 in server/services/v1/comments/list.go

View workflow job for this annotation

GitHub Actions / build

no new variables on left side of :=

Check failure on line 334 in server/services/v1/comments/list.go

View workflow job for this annotation

GitHub Actions / build

no new variables on left side of :=
if err != nil {
return err
return items, blockedCommentCnt, err
}
items = append(items, item)
}
Expand Down

0 comments on commit e9649b3

Please sign in to comment.