fix: apply go fix updates (any, range loop, slices, maps)

This commit is contained in:
2026-06-16 13:36:45 +02:00
committed by Milas Holsting
parent 8f0549b290
commit bc7a3f58cf
6 changed files with 17 additions and 19 deletions

View File

@@ -6,6 +6,7 @@ import (
"errors"
"fmt"
"log"
"maps"
"net"
"os"
"path/filepath"
@@ -294,9 +295,7 @@ func cloneFields(fields map[string]any) map[string]any {
}
copyFields := make(map[string]any, len(fields))
for key, value := range fields {
copyFields[key] = value
}
maps.Copy(copyFields, fields)
return copyFields
}