File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -86,7 +86,7 @@ func (*ConfigOpt) Type() string {
8686
8787// String returns a string repr of this option
8888func (o * ConfigOpt ) String () string {
89- configs := []string {}
89+ configs := make ( []string , 0 , len ( o . values ))
9090 for _ , config := range o .values {
9191 repr := fmt .Sprintf ("%s -> %s" , config .ConfigName , config .File .Name )
9292 configs = append (configs , repr )
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ func (*SecretOpt) Type() string {
8585
8686// String returns a string repr of this option
8787func (o * SecretOpt ) String () string {
88- secrets := []string {}
88+ secrets := make ( []string , 0 , len ( o . values ))
8989 for _ , secret := range o .values {
9090 repr := fmt .Sprintf ("%s -> %s" , secret .SecretName , secret .File .Name )
9191 secrets = append (secrets , repr )
You can’t perform that action at this time.
0 commit comments