summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMatej Vasek <mvasek@redhat.com>2020-10-22 20:02:21 +0200
committerMatej Vasek <mvasek@redhat.com>2020-10-22 20:05:01 +0200
commita997b59e44d9b2648da2236220779f655b2f14e9 (patch)
tree38ae5229c150eea6fc0ea96fdd2ef95ea3e3203e
parent5098048f82118d3371ac4bdc2497cc5f22957914 (diff)
downloadpodman-a997b59e44d9b2648da2236220779f655b2f14e9.tar.gz
podman-a997b59e44d9b2648da2236220779f655b2f14e9.tar.bz2
podman-a997b59e44d9b2648da2236220779f655b2f14e9.zip
src: nil check
Signed-off-by: Matej Vasek <mvasek@redhat.com>
-rw-r--r--pkg/api/handlers/types.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/api/handlers/types.go b/pkg/api/handlers/types.go
index b0a177e65..6bb5f5101 100644
--- a/pkg/api/handlers/types.go
+++ b/pkg/api/handlers/types.go
@@ -273,7 +273,7 @@ func ImageDataToImageInspect(ctx context.Context, l *libpodImage.Image) (*ImageI
}
rootfs := docker.RootFS{}
- if info.RootFS != nil && info.RootFS.Layers != nil {
+ if info.RootFS != nil {
rootfs.Type = info.RootFS.Type
rootfs.Layers = make([]string, 0, len(info.RootFS.Layers))
for _, layer := range info.RootFS.Layers {