another style pass

This commit is contained in:
2026-03-12 11:58:16 -06:00
parent 7e34c33e58
commit b69a5e57a2
8 changed files with 29 additions and 49 deletions
+2 -5
View File
@@ -90,11 +90,8 @@ func formatMessage(ctx context.Context, m *amMessage) ([]byte, error) {
hdrs[fmt.Sprintf("X-Disclaimer-%d", i+1)] = v
}
// Sort the header keys tro make for a better presentation.
keys := make([]string, 0, len(hdrs))
for k := range hdrs {
keys = append(keys, k)
}
// Sort the header keys to make for a better presentation.
keys := slices.Collect(maps.Keys(hdrs))
slices.Sort(keys)
// Build the actual message.