Skip to content

Commit

Permalink
WIP - Return slice of correct length
Browse files Browse the repository at this point in the history
Values are appended to this slice
  • Loading branch information
AndrewSisley committed Jun 24, 2024
1 parent 77af4fc commit 5e78787
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/db/collection_define.go
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ func (db *db) createCollections(
ctx context.Context,
newDefinitions []client.CollectionDefinition,
) ([]client.CollectionDefinition, error) {
returnDescriptions := make([]client.CollectionDefinition, len(newDefinitions))
returnDescriptions := make([]client.CollectionDefinition, 0, len(newDefinitions))

existingDefinitions, err := db.getAllActiveDefinitions(ctx)
if err != nil {
Expand Down

0 comments on commit 5e78787

Please sign in to comment.