Skip to content

Commit a129942

Browse files
mortenljCopilot
andauthored
Less stupid Go
Co-authored-by: Copilot <[email protected]>
1 parent 9c15c61 commit a129942

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pkg/deployclient/deployclient.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@ func Prepare(ctx context.Context, cfg *Config) (*pb.DeploymentRequest, error) {
131131

132132
if len(cfg.WorkloadImage) > 0 {
133133
if len(cfg.WorkloadName) == 0 {
134-
workloadNames := make([]string, len(resources))
134+
workloadNames := make([]string, 0, len(resources))
135135
for i := range resources {
136136
workloadNames = append(workloadNames, detectWorkloadName(resources[i]))
137137
}

0 commit comments

Comments
 (0)