chore: reserve capacity for copyOut
This commit is contained in:
parent
6e2d37d7e5
commit
f39f71bad5
|
@ -48,7 +48,7 @@ func convertPBCopyIn(copyIn map[string]stage.CmdFile) map[string]*pb.Request_Fil
|
||||||
}
|
}
|
||||||
|
|
||||||
func convertPBCopyOut(copyOut []string) []*pb.Request_CmdCopyOutFile {
|
func convertPBCopyOut(copyOut []string) []*pb.Request_CmdCopyOutFile {
|
||||||
rt := make([]*pb.Request_CmdCopyOutFile, 0)
|
rt := make([]*pb.Request_CmdCopyOutFile, 0, len(copyOut))
|
||||||
for _, n := range copyOut {
|
for _, n := range copyOut {
|
||||||
optional := false
|
optional := false
|
||||||
if strings.HasSuffix(n, "?") {
|
if strings.HasSuffix(n, "?") {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user