fix: unused variable warning in post-processing loop
This commit is contained in:
parent
4d209f2a90
commit
282e769c13
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user