From 93c01942cb379b448dafab7ceffd78c005772928 Mon Sep 17 00:00:00 2001 From: Alan Pearce Date: Sat, 25 Jan 2025 21:50:20 +0100 Subject: builder:make getHTMLStyleHash output-independent --- internal/builder/template.go | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'internal/builder/template.go') diff --git a/internal/builder/template.go b/internal/builder/template.go index c318107..914b67d 100644 --- a/internal/builder/template.go +++ b/internal/builder/template.go @@ -155,14 +155,8 @@ func getFeedStylesHash(r io.Reader) (string, error) { return hash(style.InnerText()), nil } -func getHTMLStyleHash(filenames ...string) (string, error) { - fn := filepath.Join(filenames...) - f, err := os.Open(fn) - if err != nil { - return "", err - } - defer f.Close() - doc, err := NewDocumentFromReader(f) +func getHTMLStyleHash(r io.Reader) (string, error) { + doc, err := NewDocumentFromReader(r) if err != nil { return "", err } -- cgit 1.4.1