Skip to content

Commit

Permalink
Fix CT log loading error message (#7725)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
cuishuang committed Sep 26, 2024
1 parent 3451952 commit d71b4bc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ctpolicy/loglist/loglist.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit d71b4bc

Please sign in to comment.