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:
parent
3451952a6e
commit
d71b4bc62b
|
@ -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))
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue