mirror of
https://github.com/zitadel/zitadel.git
synced 2024-12-04 23:45:07 +00:00
fix: fix slice init length (#8707)
# Which Problems Are Solved The intention here should be to initialize a slice with a capacity of len(queriedOrgs.Orgs) rather than initializing the length of this slice. the online demo: https://go.dev/play/p/vNUPNjdb2gJ # How the Problems Are Solved use `processedOrgs := make([]string, 0, len(queriedOrgs.Orgs))` # Additional Changes None # Additional Context None Co-authored-by: Tim Möhlmann <tim+github@zitadel.com>
This commit is contained in:
parent
f45f52ea0d
commit
69e9926bcc
@ -42,7 +42,7 @@ func (s *Server) ExportData(ctx context.Context, req *admin_pb.ExportDataRequest
|
|||||||
}
|
}
|
||||||
|
|
||||||
orgs := make([]*admin_pb.DataOrg, len(queriedOrgs.Orgs))
|
orgs := make([]*admin_pb.DataOrg, len(queriedOrgs.Orgs))
|
||||||
processedOrgs := make([]string, len(queriedOrgs.Orgs))
|
processedOrgs := make([]string, 0, len(queriedOrgs.Orgs))
|
||||||
processedProjects := make([]string, 0)
|
processedProjects := make([]string, 0)
|
||||||
processedGrants := make([]string, 0)
|
processedGrants := make([]string, 0)
|
||||||
processedUsers := make([]string, 0)
|
processedUsers := make([]string, 0)
|
||||||
|
Loading…
Reference in New Issue
Block a user