1
0
mirror of https://github.com/taigrr/godns synced 2025-01-18 04:03:25 -08:00

fix lint error

This commit is contained in:
Timothy 2020-07-22 23:55:03 +08:00
parent fa1432be99
commit 81ecf1d096
No known key found for this signature in database
GPG Key ID: DA25A2861AA0F2D1

View File

@ -74,7 +74,7 @@ func getHTTPBody(url string) ([]byte, error) {
if resp.StatusCode == http.StatusOK {
return body, err
}
return nil, fmt.Errorf("Status %d, Error:%s", resp.StatusCode, body)
return nil, fmt.Errorf("status %d, Error:%s", resp.StatusCode, body)
}
// NewAliDNS function creates instance of AliDNS and return
@ -124,7 +124,7 @@ func (d *AliDNS) UpdateDomainRecord(r DomainRecord) error {
urlPath := d.genRequestURL(parms)
if urlPath == "" {
return errors.New("Failed to generate request URL")
return errors.New("failed to generate request URL")
}
_, err := getHTTPBody(urlPath)
if err != nil {