From 94b21b286edff37496a2fe481963625ac01c30a1 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Mon, 1 Jul 2024 22:15:06 +0200 Subject: feat: more structured logging --- internal/components/results.templ | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) (limited to 'internal/components') diff --git a/internal/components/results.templ b/internal/components/results.templ index 4897638..b051219 100644 --- a/internal/components/results.templ +++ b/internal/components/results.templ @@ -2,16 +2,11 @@ package components import ( "strconv" - "log/slog" "go.alanpearce.eu/searchix/internal/nix" ) func convertMatch[I nix.Importable](m nix.Importable) *I { - i, ok := m.(I) - if !ok { - slog.Warn("Converting match failed", "match", m) - return nil - } + i := m.(I) return &i } -- cgit 1.4.1