modernize: run gopls modernize to bring up to 1.25 (#2920)

This commit is contained in:
Kristoffer Dalby 2025-12-01 19:40:25 +01:00 committed by GitHub
parent bfcd9d261d
commit eec196d200
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 78 additions and 116 deletions

View file

@ -10,6 +10,7 @@ import (
"fmt"
"io"
"log"
"maps"
"net/http"
"net/netip"
"os"
@ -132,9 +133,7 @@ func WithCustomTLS(cert, key []byte) Option {
// can be used to override Headscale configuration.
func WithConfigEnv(configEnv map[string]string) Option {
return func(hsic *HeadscaleInContainer) {
for key, value := range configEnv {
hsic.env[key] = value
}
maps.Copy(hsic.env, configEnv)
}
}