diff --git a/core/execution/market_community_tags.go b/core/execution/market_community_tags.go index f29e02fa821..b3de9b5a35e 100644 --- a/core/execution/market_community_tags.go +++ b/core/execution/market_community_tags.go @@ -22,6 +22,7 @@ import ( "code.vegaprotocol.io/vega/core/events" "code.vegaprotocol.io/vega/core/execution/common" eventspb "code.vegaprotocol.io/vega/protos/vega/events/v1" + "golang.org/x/exp/maps" ) @@ -63,7 +64,7 @@ func (m *MarketCommunityTags) serialize() []*eventspb.MarketCommunityTags { Tags: make([]string, 0, len(tags)), } - for tag, _ := range tags { + for tag := range tags { mct.Tags = append(mct.Tags, tag) } @@ -75,7 +76,7 @@ func (m *MarketCommunityTags) serialize() []*eventspb.MarketCommunityTags { return out } -// UpdateTags by that point the tags have been validated in lenght, +// UpdateTags by that point the tags have been validated in length, // so no need to do that again. func (m *MarketCommunityTags) UpdateTags( ctx context.Context,