chore: update golangci-lint config

This commit is contained in:
Steven
2023-09-17 22:55:13 +08:00
parent 9eb077c4af
commit cd0ea6558d
72 changed files with 272 additions and 187 deletions

View File

@ -1,7 +1,7 @@
package getter
import (
"fmt"
"errors"
"io"
"net/http"
"net/url"
@ -32,7 +32,7 @@ func GetHTMLMeta(urlStr string) (*HTMLMeta, error) {
return nil, err
}
if mediatype != "text/html" {
return nil, fmt.Errorf("Wrong website mediatype")
return nil, errors.New("Wrong website mediatype")
}
htmlMeta := extractHTMLMeta(response.Body)