chuangjinglu 69e9926bcc
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>
2024-11-12 14:41:18 +00:00
..
2024-11-12 14:41:18 +00:00
2022-04-26 23:01:45 +00:00
2024-07-26 22:39:55 +02:00
2020-03-27 13:57:16 +01:00
2023-04-26 19:55:13 +03:00
2022-04-26 23:01:45 +00:00
2023-05-07 16:47:43 +02:00