From 277fc299b25ff765c2013cda7240fe8f91c83f29 Mon Sep 17 00:00:00 2001 From: Patrick Britton Date: Thu, 5 Feb 2026 07:57:21 -0600 Subject: [PATCH] fix: remove unused variables in appeal handler --- go-backend/internal/handlers/appeal_handler.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/go-backend/internal/handlers/appeal_handler.go b/go-backend/internal/handlers/appeal_handler.go index 22cc1f7..351cb76 100644 --- a/go-backend/internal/handlers/appeal_handler.go +++ b/go-backend/internal/handlers/appeal_handler.go @@ -117,12 +117,6 @@ func (h *AppealHandler) GetAppeal(c *gin.Context) { return } - appealID, err := uuid.Parse(c.Param("id")) - if err != nil { - c.JSON(http.StatusBadRequest, gin.H{"error": "Invalid appeal ID"}) - return - } - // Get violation first to check if user owns it violationID, err := uuid.Parse(c.Query("violation_id")) if err != nil { @@ -164,7 +158,6 @@ func (h *AppealHandler) GetAppeal(c *gin.Context) { // Admin: GetPendingAppeals returns all pending appeals for admin review func (h *AppealHandler) GetPendingAppeals(c *gin.Context) { // Check if user is admin - userIDStr, _ := c.Get("user_id") isAdmin, _ := c.Get("is_admin") if !isAdmin.(bool) { c.JSON(http.StatusForbidden, gin.H{"error": "Admin access required"})