From 81ecf1d096525fe395ca7878f27d6a3cf95fc836 Mon Sep 17 00:00:00 2001 From: Timothy Date: Wed, 22 Jul 2020 23:55:03 +0800 Subject: [PATCH] fix lint error --- handler/alidns/alidns.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/handler/alidns/alidns.go b/handler/alidns/alidns.go index 70d7376..ee36207 100644 --- a/handler/alidns/alidns.go +++ b/handler/alidns/alidns.go @@ -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 {