adjust collection; adjust migration

This commit is contained in:
giovanni
2026-04-14 16:52:50 +07:00
parent 9b0335cac8
commit 6a012b75aa
7 changed files with 5261 additions and 246 deletions
+2 -2
View File
@@ -193,7 +193,7 @@ func randomToken(size int) (string, error) {
func canonicalPermissions(perms []string) []string {
if len(perms) == 0 {
return nil
return []string{}
}
seen := make(map[string]struct{}, len(perms))
@@ -214,7 +214,7 @@ func canonicalPermissions(perms []string) []string {
func uniqueUint(values []uint) []uint {
if len(values) == 0 {
return nil
return []uint{}
}
seen := make(map[uint]struct{}, len(values))