Skip to content

Commit 59192c6

Browse files
committed
format the code
1 parent 82d460e commit 59192c6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

internal/handler/handler.go

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,9 +104,10 @@ func (handler *Handler) UpdateIP(domain *settings.Domain) error {
104104

105105
func (handler *Handler) updateDNS(domain *settings.Domain, ip string) error {
106106
var updatedDomains []string
107-
for _, subdomainName := range domain.SubDomains {
108107

108+
for _, subdomainName := range domain.SubDomains {
109109
var hostname string
110+
110111
if subdomainName != utils.RootDomain {
111112
hostname = subdomainName + "." + domain.DomainName
112113
} else {
@@ -119,7 +120,7 @@ func (handler *Handler) updateDNS(domain *settings.Domain, ip string) error {
119120
continue
120121
}
121122

122-
//check against the current known IP, if no change, skip update
123+
// check against the current known IP, if no change, skip update
123124
if ip == lastIP {
124125
log.Infof("IP is the same as cached one (%s). Skip update.", ip)
125126
} else {

0 commit comments

Comments
 (0)