about summary refs log tree commit diff stats
path: root/internal/builder/template.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/builder/template.go')
-rw-r--r--internal/builder/template.go10
1 files changed, 2 insertions, 8 deletions
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
 	}