chuangjinglu f65a02ccb7
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>
(cherry picked from commit 69e9926bcc9f766aef5cb34babd94ef627337835)
2024-11-15 09:33:15 +01:00
..
2024-09-11 10:53:55 +00:00
2024-11-15 09:33:15 +01:00
2024-04-11 09:16:10 +02:00
2022-04-26 23:01:45 +00:00
2021-03-09 10:30:11 +01:00
2024-08-15 06:37:06 +02:00
2024-09-06 13:11:36 +00:00
2024-09-13 13:22:25 +00:00