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

refactor: fix code lint warnings

This commit is contained in:
Timothy
2020-08-10 14:39:56 +08:00
parent e94d99e25c
commit 1ddd1dfb8b
6 changed files with 24 additions and 18 deletions

View File

@@ -133,7 +133,7 @@ func (d *AliDNS) UpdateDomainRecord(r DomainRecord) error {
}
func (d *AliDNS) genRequestURL(parms map[string]string) string {
pArr := []string{}
var pArr []string
ps := map[string]string{}
for k, v := range publicParm {
ps[k] = v

View File

@@ -14,7 +14,7 @@ import (
"time"
"github.com/TimothyYe/godns"
simplejson "github.com/bitly/go-simplejson"
"github.com/bitly/go-simplejson"
)
// Handler struct definition

View File

@@ -85,6 +85,7 @@ func (handler *Handler) UpdateIP(domain, subDomain, currentIP string) {
if err != nil {
// handle error
log.Print("Failed to update sub domain:", subDomain)
return
}
defer resp.Body.Close()