From 622f8eaa497abe7464a334aef61db18bc8ad760a Mon Sep 17 00:00:00 2001 From: jedarden Date: Mon, 6 Apr 2026 18:35:05 -0400 Subject: [PATCH] fix: rename shadowed color variable to clr in notify/service.go The local variable `color` shadowed the `image/color` package import, causing compilation failures on lines that referenced `color.RGBA` after the variable was declared. Co-Authored-By: Claude Opus 4.6 --- mothership/internal/notify/service.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/mothership/internal/notify/service.go b/mothership/internal/notify/service.go index 1b7fb1c..3510840 100644 --- a/mothership/internal/notify/service.go +++ b/mothership/internal/notify/service.go @@ -649,18 +649,18 @@ func (s *Service) GenerateFloorPlanThumbnail(width, height int, blobs []struct { } // Color based on state - color := color.RGBA{100, 181, 246, 255} // Blue - normal + clr := color.RGBA{100, 181, 246, 255} // Blue - normal if blob.IsFall { - color = color.RGBA{239, 83, 80, 255} // Red - fall detected + clr = color.RGBA{239, 83, 80, 255} // Red - fall detected } else if blob.Identity != "" { - color = color.RGBA{129, 199, 132, 255} // Green - identified + clr = color.RGBA{129, 199, 132, 255} // Green - identified } // Draw circle for dy := -4; dy <= 4; dy++ { for dx := -4; dx <= 4; dx++ { if dx*dx+dy*dy <= 16 { - img.Set(px+dx, pz+dy, color) + img.Set(px+dx, pz+dy, clr) } } }