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

@@ -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()