From 2ecf8715657692e899fbb9d3fdec9b0395d57f7f Mon Sep 17 00:00:00 2001 From: MrMelon54 Date: Thu, 8 Feb 2024 13:28:55 +0000 Subject: [PATCH] Fix this string slice being nil --- claims/perms.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/claims/perms.go b/claims/perms.go index abcb216..a2d65d8 100644 --- a/claims/perms.go +++ b/claims/perms.go @@ -45,7 +45,7 @@ func (p *PermStorage) OneOf(o *PermStorage) bool { } func (p *PermStorage) Dump() []string { - var a []string + a := make([]string, 0, len(p.values)) for i := range p.values { a = append(a, i) }