style: align format to go default formatting
All checks were successful
CI / test (pull_request) Successful in 36s

This commit is contained in:
2024-12-23 19:27:20 +01:00
parent a01c328ac5
commit de4147e29d
3 changed files with 20 additions and 22 deletions

View File

@@ -123,7 +123,7 @@ func (i *IonosAPIImpl) GetRecordId(zoneId string, tld string, subdomain string,
json.Unmarshal(responseBody, &zone)
var domain string
if subdomain == "@" || subdomain == "" {
if subdomain == "@" || subdomain == "" {
domain = tld
} else {
domain = subdomain + "." + tld
@@ -171,8 +171,6 @@ func (i *IonosAPIImpl) SetARecord(tld string, subdomain string, ip net.IP, ttl i
return nil, errors.New("error updating record")
}
changeRecord := ChangeRecord{}
json.Unmarshal(responseBody, &changeRecord)