Skip to content

Commit

Permalink
node: address prealloc lint error in governor code
Browse files Browse the repository at this point in the history
  • Loading branch information
johnsaigle committed Jul 17, 2024
1 parent 8dc7f50 commit 876a94d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion node/pkg/governor/governor.go
Original file line number Diff line number Diff line change
Expand Up @@ -389,7 +389,7 @@ func (gov *ChainGovernor) initConfig() error {

// Populate a sorted list of chain IDs so that we can iterate over maps in a determinstic way.
// https://go.dev/blog/maps, "Iteration order" section
var governedChainIds []vaa.ChainID
governedChainIds := make([]vaa.ChainID, len(gov.chains))
for id := range gov.chains {
governedChainIds = append(governedChainIds, id)
}
Expand Down

0 comments on commit 876a94d

Please sign in to comment.