1
0
mirror of https://github.com/StackExchange/dnscontrol.git synced 2024-05-11 05:55:12 +00:00
Co-authored-by: Tom Limoncelli <tal@whatexit.org>
This commit is contained in:
Tom Limoncelli
2023-05-01 18:40:10 -04:00
committed by GitHub
parent 8f4a08a7e6
commit 780e17ada9
3 changed files with 3 additions and 3 deletions

View File

@ -6,6 +6,6 @@ package bindserial
// by isolating it to this file we limit the blast radius of this bad
// decision.
// ForceBindSerial if non-zero, BIND will generate SOA serial numbers
// ForcedValue if non-zero, BIND will generate SOA serial numbers
// using this value.
var ForcedValue int64

View File

@ -187,7 +187,7 @@ func ByZone(existing models.Records, dc *models.DomainConfig, compFunc Comparabl
// Only return the messages. The caller has the list of records needed to build the new zone.
instructions, err := byHelper(analyzeByRecord, existing, dc, compFunc)
changes := false
for i, _ := range instructions {
for i := range instructions {
//fmt.Printf("DEBUG: ByZone #%d: %v\n", i, ii)
if instructions[i].Type != REPORT {
changes = true

View File

@ -38,7 +38,7 @@ func CorrectZoneRecords(driver models.DNSProvider, dc *models.DomainConfig) ([]*
// corrections that are purely informational. (i.e. `.F` is nil)
func CountActionable(corrections []*models.Correction) int {
count := 0
for i, _ := range corrections {
for i := range corrections {
if corrections[i].F != nil {
count++
}