about summary refs log tree commit diff stats
path: root/internal
diff options
context:
space:
mode:
authorAlan Pearce2025-03-16 20:04:29 +0100
committerAlan Pearce2025-03-16 20:04:29 +0100
commitd5e11478bf3771623a0d181e6cede3145b3563e0 (patch)
tree1128c903a429027bd42dc18fe11db56212a2454d /internal
parent59b6e2b812f7028cba8a01cf94165b081717848c (diff)
downloadsearchix-d5e11478bf3771623a0d181e6cede3145b3563e0.tar.lz
searchix-d5e11478bf3771623a0d181e6cede3145b3563e0.tar.zst
searchix-d5e11478bf3771623a0d181e6cede3145b3563e0.zip
fix: build error (incomplete commit)
Diffstat (limited to 'internal')
-rw-r--r--internal/components/markdown.templ7
1 files changed, 2 insertions, 5 deletions
diff --git a/internal/components/markdown.templ b/internal/components/markdown.templ
index 9bbbe1b..21b0aa0 100644
--- a/internal/components/markdown.templ
+++ b/internal/components/markdown.templ
@@ -7,7 +7,6 @@ import (
 
 	"github.com/yuin/goldmark"
 	"github.com/yuin/goldmark/extension"
-	"gitlab.com/tozd/go/errors"
 
 	"go.alanpearce.eu/searchix/internal/nix"
 )
@@ -28,9 +27,7 @@ func firstSentence[T ~string](text T) T {
 }
 
 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)
 	})
 }