From 32252d1c54b2cd05376b249ff40af7e13e1ec5e4 Mon Sep 17 00:00:00 2001 From: Runxi Yu Date: Sun, 17 Aug 2025 16:25:24 +0800 Subject: gofumpt --- forged/internal/common/bare/unions.go | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'forged/internal/common/bare') diff --git a/forged/internal/common/bare/unions.go b/forged/internal/common/bare/unions.go index 0270a5f..1020fa0 100644 --- a/forged/internal/common/bare/unions.go +++ b/forged/internal/common/bare/unions.go @@ -21,8 +21,10 @@ type UnionTags struct { types map[uint64]reflect.Type } -var unionInterface = reflect.TypeOf((*Union)(nil)).Elem() -var unionRegistry map[reflect.Type]*UnionTags +var ( + unionInterface = reflect.TypeOf((*Union)(nil)).Elem() + unionRegistry map[reflect.Type]*UnionTags +) func init() { unionRegistry = make(map[reflect.Type]*UnionTags) -- cgit v1.2.3