summaryrefslogtreecommitdiff
path: root/internal/config/v2/convert.go
diff options
context:
space:
mode:
authorJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-05-06 12:40:47 +0200
committerJeroen Wijenbergh <jeroen.wijenbergh@geant.org>2025-05-06 12:40:47 +0200
commit347b20fc91505584bc9efbeca89590a411b95e79 (patch)
tree9dfc600e957c4a881115f8bc8a9cc107a4f0cc9c /internal/config/v2/convert.go
parent9c4985368aee638d982f30ea7bc5c7ee71ae3ab3 (diff)
All: Run modernize --test --fix
Diffstat (limited to 'internal/config/v2/convert.go')
-rw-r--r--internal/config/v2/convert.go5
1 files changed, 2 insertions, 3 deletions
diff --git a/internal/config/v2/convert.go b/internal/config/v2/convert.go
index 59b0d3e..f50ffaf 100644
--- a/internal/config/v2/convert.go
+++ b/internal/config/v2/convert.go
@@ -5,6 +5,7 @@ import (
"codeberg.org/eduVPN/eduvpn-common/internal/config/v1"
"codeberg.org/eduVPN/eduvpn-common/types/server"
+ "maps"
)
func v1AuthTime(st time.Time, ost time.Time) time.Time {
@@ -51,9 +52,7 @@ func FromV1(ver1 *v1.V1) *V2 {
lc = glc
}
- for k, v := range cust {
- res[k] = v
- }
+ maps.Copy(res, cust)
sec := gsrvs.SecureInternetHome
// if the home organization ID is filled we have secure internet present
if sec.HomeOrganizationID == "" {