diff --git a/cmd/soundtouch-web/handlers/handlers_test.go b/cmd/soundtouch-web/handlers/handlers_test.go index 4536e23..b000544 100644 --- a/cmd/soundtouch-web/handlers/handlers_test.go +++ b/cmd/soundtouch-web/handlers/handlers_test.go @@ -46,15 +46,15 @@ func TestNewWebApp(t *testing.T) { app := NewWebApp() // Use require-style checks that satisfy static analyzer - if app == nil { //nolint:staticcheck // false positive - NewWebApp never returns nil + if app == nil { t.Fatal("NewWebApp returned nil") } - if app.Devices == nil { //nolint:staticcheck // false positive - t.Fatal above stops execution + if app.Devices == nil { t.Fatal("Devices map not initialized") } // At this point we know app and app.Devices are not nil - if len(app.Devices) != 0 { //nolint:staticcheck // false positive - t.Fatal above stops execution + if len(app.Devices) != 0 { t.Errorf("Expected empty devices map, got %d devices", len(app.Devices)) } }