mirror of
https://github.com/open-policy-agent/opa.git
synced 2026-08-12 19:32:48 -06:00
eaf6a345fc
Children() rebuilds and sorts a slice from the children map on every call; Depth() was calling it twice (once for the length check, once for the cap hint) for no benefit since only the count is used. Signed-off-by: Stephan Renatus <stephan.renatus@gmail.com>