From 888c9fec652b82174702c710f54f7d64f194315c Mon Sep 17 00:00:00 2001 From: Grail Finder Date: Wed, 25 Feb 2026 20:06:56 +0300 Subject: Chore: linter complaints --- rag/extractors.go | 3 --- 1 file changed, 3 deletions(-) (limited to 'rag/extractors.go') diff --git a/rag/extractors.go b/rag/extractors.go index 4255fdb..0f9f3f4 100644 --- a/rag/extractors.go +++ b/rag/extractors.go @@ -95,9 +95,7 @@ func extractTextFromEpub(fpath string) (string, error) { return "", fmt.Errorf("failed to open epub: %w", err) } defer r.Close() - var sb strings.Builder - for _, f := range r.File { ext := strings.ToLower(path.Ext(f.Name)) if ext != ".xhtml" && ext != ".html" && ext != ".htm" && ext != ".xml" { @@ -129,7 +127,6 @@ func extractTextFromEpub(fpath string) (string, error) { sb.WriteString(stripHTML(string(buf))) } } - if sb.Len() == 0 { return "", errors.New("no content extracted from epub") } -- cgit v1.2.3