fix: unused variable warning in post-processing loop
All checks were successful
Gitea Build Check / Build (push) Successful in 39s
Gitea Build Check / Build (pull_request) Successful in 38s

This commit is contained in:
SoXX 2024-11-01 22:15:43 +01:00
parent 4d209f2a90
commit 282e769c13

View File

@ -81,7 +81,7 @@ func BatchPostProcessingWithSummery(ctx context.Context, userSource models.UserS
anthroveFaves := make([]models.UserFavorite, 0, len(existingPostsReferences)) anthroveFaves := make([]models.UserFavorite, 0, len(existingPostsReferences))
newPosts := make([]models.Post, 0, len(existingPostsReferences)) newPosts := make([]models.Post, 0, len(existingPostsReferences))
for i, post := range posts { for _, post := range posts {
if !slices.ContainsFunc(existingPostsReferences, func(reference models.PostReference) bool { if !slices.ContainsFunc(existingPostsReferences, func(reference models.PostReference) bool {
found := reference.SourcePostID == post.References[0].SourcePostID found := reference.SourcePostID == post.References[0].SourcePostID
if found { if found {