diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-01-29 07:23:32 -0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-01-29 07:23:32 -0800 |
commit | 955866c97da3007be20a6812eb8afa48e9833d23 (patch) | |
tree | be100998e60126fbf283d2e36c5ac77425672dfa /libpod | |
parent | 8241c1ae940996ff086f67cff655b202b6092699 (diff) | |
parent | c9fb6d16683bd8f75d74fe9df74386b23df29525 (diff) | |
download | podman-955866c97da3007be20a6812eb8afa48e9833d23.tar.gz podman-955866c97da3007be20a6812eb8afa48e9833d23.tar.bz2 podman-955866c97da3007be20a6812eb8afa48e9833d23.zip |
Merge pull request #5013 from vrothberg/fix-4916
history: fix size computing
Diffstat (limited to 'libpod')
-rw-r--r-- | libpod/image/image.go | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libpod/image/image.go b/libpod/image/image.go index 7ee8c45d7..355249b12 100644 --- a/libpod/image/image.go +++ b/libpod/image/image.go @@ -831,7 +831,8 @@ func (i *Image) History(ctx context.Context) ([]*History, error) { id := "<missing>" if x == numHistories { id = i.ID() - } else if layer != nil { + } + if layer != nil { if !oci.History[x].EmptyLayer { size = layer.UncompressedSize } |