diff --git a/models/t_loc.go b/models/t_loc.go index 8e7afd403..de5950caa 100644 --- a/models/t_loc.go +++ b/models/t_loc.go @@ -182,9 +182,7 @@ func getENotationInt(x float32) (uint8, error) { } // Truncate the mantissa (integer value) and ensure it's within 4 bits - mantissaInt := min(int(math.Floor(mantissa)), - // Cap mantissa at 9 - 9) + mantissaInt := min(int(math.Floor(mantissa)), 9) // Cap mantissa at 9 // Ensure exponent is within 4 bits if exp < 0 { diff --git a/pkg/diff2/handsoff_test.go b/pkg/diff2/handsoff_test.go index c380c0fb7..298c041ac 100644 --- a/pkg/diff2/handsoff_test.go +++ b/pkg/diff2/handsoff_test.go @@ -34,10 +34,12 @@ func parseZoneContents(content string, zoneName string, zonefileName string) (mo func showRecs(recs models.Records) string { var result strings.Builder for _, rec := range recs { - result.WriteString((rec.GetLabel() + - " " + rec.Type + - " " + rec.GetTargetCombined() + - "\n")) + result.WriteString(rec.GetLabel()) + result.WriteString(" ") + result.WriteString(rec.Type) + result.WriteString(" ") + result.WriteString(rec.GetTargetCombined()) + result.WriteString("\n") } return result.String() }