Skip to content

Commit

Permalink
Update slice capacity
Browse files Browse the repository at this point in the history
Resolves: #1135 (comment)
  • Loading branch information
ankur22 committed Dec 15, 2023
1 parent 1210700 commit 010b677
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion common/remote_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ func parseConsoleRemoteObjectPreview(logger *log.Logger, op *cdpruntime.ObjectPr
}

func parseConsoleRemoteArrayPreview(logger *log.Logger, op *cdpruntime.ObjectPreview) string {
arr := make([]any, 0)
arr := make([]any, 0, len(op.Properties))
if op.Overflow {
logger.Warnf("parseConsoleRemoteArrayPreview", "array is too large and will be parsed partially")
}
Expand Down

0 comments on commit 010b677

Please sign in to comment.