Skip to content

Commit

Permalink
[NO TESTS NEEDED] API list networks should return [] when used with n…
Browse files Browse the repository at this point in the history
…o networks

Signed-off-by: zhangguanzhang <[email protected]>
  • Loading branch information
zhangguanzhang committed Jun 1, 2021
1 parent 7dd463b commit 1daaf34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/domain/infra/abi/network.go
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import (
)

func (ic *ContainerEngine) NetworkList(ctx context.Context, options entities.NetworkListOptions) ([]*entities.NetworkListReport, error) {
var reports []*entities.NetworkListReport
reports := make([]*entities.NetworkListReport, 0)

config, err := ic.Libpod.GetConfig()
if err != nil {
Expand Down

0 comments on commit 1daaf34

Please sign in to comment.