Skip to content

Commit

Permalink
fix(x/auth): fix slice init length (backport #22006) (#22011)
Browse files Browse the repository at this point in the history
  • Loading branch information
mergify[bot] authored Oct 1, 2024
1 parent 7dd89bc commit d6ec71f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion x/auth/vesting/types/period.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ func (p Periods) TotalAmount() sdk.Coins {

// String implements the fmt.Stringer interface
func (p Periods) String() string {
periodsListString := make([]string, len(p))
periodsListString := make([]string, 0, len(p))
for _, period := range p {
periodsListString = append(periodsListString, period.String())
}
Expand Down

0 comments on commit d6ec71f

Please sign in to comment.