chore: bump Go version to 1.26.0 (#7856)

This commit is contained in:
Ville Vesilehto
2026-02-16 14:26:18 +02:00
committed by GitHub
parent 0f0a9920b1
commit b1080a2934
20 changed files with 34 additions and 32 deletions

View File

@@ -298,7 +298,7 @@ func (external) EpIndex(s string) []*object.Endpoints {
}
func (external) EndpointsList() []*object.Endpoints {
var eps []*object.Endpoints
eps := make([]*object.Endpoints, 0, len(epIndexExternal))
for _, ep := range epIndexExternal {
eps = append(eps, ep...)
}
@@ -416,7 +416,7 @@ var svcIndexExternal = map[string][]*object.Service{
}
func (external) ServiceList() []*object.Service {
var svcs []*object.Service
svcs := make([]*object.Service, 0, len(svcIndexExternal))
for _, svc := range svcIndexExternal {
svcs = append(svcs, svc...)
}

View File

@@ -38,7 +38,7 @@ func TestTransferAXFR(t *testing.T) {
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
var records []dns.RR
var records []dns.RR //nolint:prealloc // records are read from a channel
for rrs := range ch {
records = append(records, rrs...)
}
@@ -104,7 +104,7 @@ func TestTransferIXFR(t *testing.T) {
if err != nil {
t.Fatalf("Unexpected error: %v", err)
}
var records []dns.RR
var records []dns.RR //nolint:prealloc // records are read from a channel
for rrs := range ch {
records = append(records, rrs...)
}