all repos — searchix @ d5e11478bf3771623a0d181e6cede3145b3563e0

Search engine for NixOS, nix-darwin, home-manager and NUR users

fix: build error (incomplete commit)
Alan Pearce alan@alanpearce.eu
Sun, 16 Mar 2025 20:04:29 +0100
commit

d5e11478bf3771623a0d181e6cede3145b3563e0

parent

59b6e2b812f7028cba8a01cf94165b081717848c

1 files changed, 2 insertions(+), 5 deletions(-)

jump to
M internal/components/markdown.templinternal/components/markdown.templ
@@ -7,7 +7,6 @@ "regexp" 
 	"github.com/yuin/goldmark"
 	"github.com/yuin/goldmark/extension"
-	"gitlab.com/tozd/go/errors"
 
 	"go.alanpearce.eu/searchix/internal/nix"
 )
@@ -28,9 +27,7 @@ return text }
 
 func markdown(text nix.Markdown) templ.Component {
-	return templ.ComponentFunc(func(ctx context.Context, w io.Writer) errors.E {
-		err := md.Convert([]byte(text), w)
-
-		return err
+	return templ.ComponentFunc(func(ctx context.Context, w io.Writer) error {
+		return md.Convert([]byte(text), w)
 	})
 }