all repos — searchix @ f775db95d59a56feeafa6a4e147885c814bf5fb7

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

fix: build error caused by incomplete commit
Alan Pearce alan@alanpearce.eu
Sun, 16 Mar 2025 16:38:52 +0100
commit

f775db95d59a56feeafa6a4e147885c814bf5fb7

parent

9015baf955c94a806c01b3dcd5648c8e68ad2685

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

jump to
M internal/components/markdown.templinternal/components/markdown.templ
@@ -1,14 +1,15 @@ package components
 
 import (
+	"context"
+	"io"
 	"regexp"
 
-	"go.alanpearce.eu/searchix/internal/nix"
-
-	"context"
 	"github.com/yuin/goldmark"
 	"github.com/yuin/goldmark/extension"
-	"io"
+	"gitlab.com/tozd/go/errors"
+
+	"go.alanpearce.eu/searchix/internal/nix"
 )
 
 var (
M internal/components/page.templinternal/components/page.templ
@@ -81,7 +81,7 @@ <script src={ s.URL } defer integrity={ "sha256-" + s.Base64SHA256 }></script> }
 
 func Unsafe(html string) templ.Component {
-	return templ.ComponentFunc(func(_ context.Context, w io.Writer) (err errors.E) {
+	return templ.ComponentFunc(func(_ context.Context, w io.Writer) (err error) {
 		_, err = io.WriteString(w, html)
 		return
 	})