style: drop code comments and separate template headers
This commit is contained in:
1 parent
adff599e08
commit
2a773e740f
16 files changed
+14
-3
No files matched your search
@@ -198,8 +198,6 @@ func validateZoneChanges(zone string, current []recordRow, changes zoneChanges)
|
||||
problems, warnings = zoneRuleProblems(zone, result, after, true)
|
||||
soaRepair := len(after.soa) != 0 && soaDefects(after.soa) < soaDefects(before.soa)
|
||||
soaOnlyRepair := soaRepair && slices.Equal(nonSOARows(current), nonSOARows(result))
|
||||
// An existing CNAME can block an SOA repair at the apex. Permit an
|
||||
// independent repair without permitting normal writes on the broken zone.
|
||||
cnameRepair := soaDefects(after.soa) != 0 && changes.deletesOnly()
|
||||
if len(problems) != 0 && (soaOnlyRepair || cnameRepair) {
|
||||
beforeProblems, _ := zoneRuleProblems(zone, current, before, true)
|
||||
|
||||
Reference in new issue
Block a user