sortedSuspiciousKeys returns the suspicious env var names alphabetically sorted for stable output.
()
| 391 | // sortedSuspiciousKeys returns the suspicious env var names alphabetically |
| 392 | // sorted for stable output. |
| 393 | func (f *serviceEnvFindings) sortedSuspiciousKeys() []string { |
| 394 | return sortedMapKeys(f.suspiciousKeys) |
| 395 | } |
| 396 | |
| 397 | func sortedMapKeys[V any](m map[string]V) []string { |
| 398 | keys := make([]string, 0, len(m)) |