fix: Remove unused variable excludeXPaths in ExtractContentWithXPath function

This commit is contained in:
Arik Jones (aider)
2024-09-14 16:50:34 -05:00
parent f1af20e95e
commit 09f8ed07c2

View File

@@ -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) {