Fix CT log loading error message (#7725)

The intention here should be to initialize a slice with a capacity of
len(remaining) rather than initializing the length of this slice, so that
the resulting error message doesn't start with empty-string entries.
This commit is contained in:
cui fliter 2024-09-27 01:22:27 +08:00 committed by GitHub
parent 3451952a6e
commit d71b4bc62b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -217,7 +217,7 @@ func (ll List) subset(names []string) (List, error) {
}
if len(remaining) > 0 {
missed := make([]string, len(remaining))
missed := make([]string, 0, len(remaining))
for name := range remaining {
missed = append(missed, fmt.Sprintf("%q", name))
}