Skip to content

Commit

Permalink
fix: fix slice init length (#766)
Browse files Browse the repository at this point in the history
  • Loading branch information
davidwoood authored Dec 12, 2024
1 parent 8ed1acf commit c939f47
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion server/debugger/debugsession.go
Original file line number Diff line number Diff line change
Expand Up @@ -649,7 +649,7 @@ func (s *session) convertStorageMapToDAPVariables(
value *interpreter.StorageMap,
) []dap.Variable {

members := make([]dap.Variable, value.Count())
members := make([]dap.Variable, 0, value.Count())

it := value.Iterator(inter)
for {
Expand Down

0 comments on commit c939f47

Please sign in to comment.