We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 01863bc commit b0c85a6Copy full SHA for b0c85a6
cmd/go-judge-shell/grpc.go
@@ -181,7 +181,7 @@ func convertPBCopyIn(copyIn map[string]model.CmdFile) map[string]*pb.Request_Fil
181
}
182
183
func convertPBCopyOut(copyOut []string) []*pb.Request_CmdCopyOutFile {
184
- rt := make([]*pb.Request_CmdCopyOutFile, len(copyOut))
+ rt := make([]*pb.Request_CmdCopyOutFile, 0, len(copyOut))
185
for _, n := range copyOut {
186
optional := false
187
if strings.HasSuffix(n, "?") {
0 commit comments