From 09f8ed07c2953dbc586c90303549ce8f195997a0 Mon Sep 17 00:00:00 2001 From: "Arik Jones (aider)" Date: Sat, 14 Sep 2024 16:50:34 -0500 Subject: [PATCH] fix: Remove unused variable `excludeXPaths` in `ExtractContentWithXPath` function --- internal/scraper/scraper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/scraper/scraper.go b/internal/scraper/scraper.go index 10ddbeb..b5a0fcd 100644 --- a/internal/scraper/scraper.go +++ b/internal/scraper/scraper.go @@ -280,7 +280,7 @@ func ExtractContentWithXPath(content, xpath string) (string, error) { return "", fmt.Errorf("error parsing HTML: %v", err) } - includeXPath, excludeXPaths := parseSelectors(xpath) + includeXPath, _ := parseSelectors(xpath) var selectedContent string doc.Find("body").Each(func(i int, s *goquery.Selection) {