Skip to content

Commit

Permalink
GetSubnetsInfo: declare return value w/ capacity
Browse files Browse the repository at this point in the history
addresses review comment #429 (comment)
  • Loading branch information
feuGeneA committed Jul 19, 2024
1 parent aceb38b commit a89da99
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/local/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -338,7 +338,7 @@ func (n *LocalNetwork) DeployTeleporterRegistryContracts(
}

func (n *LocalNetwork) GetSubnetsInfo() []interfaces.SubnetTestInfo {
subnetsInfo := make([]interfaces.SubnetTestInfo, 0)
subnetsInfo := make([]interfaces.SubnetTestInfo, 0, len(n.subnetsInfo))
for _, subnetInfo := range n.subnetsInfo {
subnetsInfo = append(subnetsInfo, *subnetInfo)
}
Expand Down

0 comments on commit a89da99

Please sign in to comment.