Skip to content

Commit

Permalink
Return empty array instead of default
Browse files Browse the repository at this point in the history
Whilst there is not much difference in terms of behaviour, they are still different and it notable enough to result in a test failure
  • Loading branch information
AndrewSisley committed Apr 4, 2023
1 parent c292eb8 commit 13e4d30
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/peer.go
Original file line number Diff line number Diff line change
Expand Up @@ -867,7 +867,7 @@ func (p *Peer) GetAllP2PCollections() ([]client.P2PCollection, error) {
return nil, err
}

var p2pCols []client.P2PCollection
p2pCols := []client.P2PCollection{}
for _, colID := range collections {
col, err := store.GetCollectionBySchemaID(p.ctx, colID)
if err != nil {
Expand Down

0 comments on commit 13e4d30

Please sign in to comment.