From 17d9df47e1155ee797dc8e49f659c7527f18ca76 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Thu, 5 Feb 2026 07:56:40 -0600 Subject: [PATCH] fix: remove unused scoresMap variables in moderation service --- go-backend/internal/services/moderation_service.go | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/go-backend/internal/services/moderation_service.go b/go-backend/internal/services/moderation_service.go index 481168e..788d1c7 100644 --- a/go-backend/internal/services/moderation_service.go +++ b/go-backend/internal/services/moderation_service.go @@ -362,12 +362,6 @@ func (s *ModerationService) FlagPost(ctx context.Context, postID uuid.UUID, scor // Create user violation record if we have the user ID if userID != uuid.Nil { - scoresMap := map[string]float64{ - "hate": scores.Hate, - "greed": scores.Greed, - "delusion": scores.Delusion, - } - // This would require the AppealService, but for now we'll create a simple violation record violationQuery := ` SELECT create_user_violation($1, $2, $3, $4) @@ -406,12 +400,6 @@ func (s *ModerationService) FlagComment(ctx context.Context, commentID uuid.UUID // Create user violation record if we have the user ID if userID != uuid.Nil { - scoresMap := map[string]float64{ - "hate": scores.Hate, - "greed": scores.Greed, - "delusion": scores.Delusion, - } - // This would require the AppealService, but for now we'll create a simple violation record violationQuery := ` SELECT create_user_violation($1, $2, $3, $4)