Skip to content

Commit

Permalink
Fix podman-remote images
Browse files Browse the repository at this point in the history
Looks like we went too far with the linters.

Signed-off-by: Daniel J Walsh <[email protected]>
  • Loading branch information
rhatdan committed Jun 16, 2020
1 parent 908bc3f commit fb4148b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion libpod/image/image.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (ir *Runtime) getImages(rwOnly bool) ([]*Image, error) {
if err != nil {
return nil, err
}
newImages := make([]*Image, 0, len(images))
newImages := []*Image{}
for _, i := range images {
if rwOnly && i.ReadOnly {
continue
Expand Down
2 changes: 1 addition & 1 deletion pkg/domain/infra/tunnel/images.go
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ func (ir *ImageEngine) List(ctx context.Context, opts entities.ImageListOptions)
return nil, err
}

is := make([]*entities.ImageSummary, 0, len(images))
is := make([]*entities.ImageSummary, len(images))
for i, img := range images {
hold := entities.ImageSummary{}
if err := utils.DeepCopy(&hold, img); err != nil {
Expand Down

0 comments on commit fb4148b

Please sign in to comment.