Skip to content

Commit

Permalink
I thought second parameter was capacity..
Browse files Browse the repository at this point in the history
  • Loading branch information
serprex committed Nov 16, 2023
1 parent eb26284 commit 94ab6f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion flow/model/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,7 @@ schemaLoop:
if len(tm.Exclude) == 0 {
break
}
added := make([]*protos.DeltaAddedColumn, len(delta.AddedColumns))
added := make([]*protos.DeltaAddedColumn, 0, len(delta.AddedColumns))
for _, column := range delta.AddedColumns {
if !slices.Contains(tm.Exclude, column.ColumnName) {
added = append(added, column)
Expand Down

0 comments on commit 94ab6f8

Please sign in to comment.