From 282e769c1318f6dd9303b52f874f585d40593f1c Mon Sep 17 00:00:00 2001 From: SoXX Date: Fri, 1 Nov 2024 22:15:43 +0100 Subject: [PATCH] fix: unused variable warning in post-processing loop --- pkg/plug/scrape.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pkg/plug/scrape.go b/pkg/plug/scrape.go index 5f1262d..4965241 100644 --- a/pkg/plug/scrape.go +++ b/pkg/plug/scrape.go @@ -81,7 +81,7 @@ func BatchPostProcessingWithSummery(ctx context.Context, userSource models.UserS anthroveFaves := make([]models.UserFavorite, 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 { found := reference.SourcePostID == post.References[0].SourcePostID if found {