Skip to content
This repository has been archived by the owner on Sep 19, 2018. It is now read-only.

Commit

Permalink
consolidate if blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
alkar committed Nov 24, 2017
1 parent 1065300 commit a65f013
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions registrator.go
Original file line number Diff line number Diff line change
Expand Up @@ -293,9 +293,7 @@ func (r *registrator) pruneBatch(action string, records []cnameRecord) []cnameRe
o := r.ingressWatcher.HostnameOwners(u.Hostname)
if len(o) > 0 {
log.Printf("[DEBUG] will not delete record %s because it's still claimed by: %s", u.Hostname, strings.Join(o, ","))
break
}
if err == nil {
} else if err == nil {
pruned = append(pruned, u)
} else if err != errDNSEmptyAnswer {
log.Printf("[DEBUG] error resolving %s: %+v, will try to delete the record", u.Hostname, err)
Expand Down

0 comments on commit a65f013

Please sign in to comment.