rename + change signature

This commit is contained in:
Kirill Zhuravlev 2023-02-15 00:54:33 +01:00 committed by Avelino
parent c6266ba8c9
commit 045416c17d
No known key found for this signature in database
GPG Key ID: B345B4D52E98180A

View File

@ -207,7 +207,7 @@ func extractCategories(doc *goquery.Document) (map[string]Category, error) {
return
}
category, err := makeCategoryByID(selector, doc)
category, err := extractCategory(doc, selector)
if err != nil {
return
}
@ -220,7 +220,7 @@ func extractCategories(doc *goquery.Document) (map[string]Category, error) {
return categories, nil
}
func makeCategoryByID(selector string, doc *goquery.Document) (*Category, error) {
func extractCategory(doc *goquery.Document, selector string) (*Category, error) {
var category Category
var err error