From a997b59e44d9b2648da2236220779f655b2f14e9 Mon Sep 17 00:00:00 2001 From: Matej Vasek Date: Thu, 22 Oct 2020 20:02:21 +0200 Subject: src: nil check Signed-off-by: Matej Vasek --- pkg/api/handlers/types.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pkg/api/handlers') 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 { -- cgit v1.2.3-54-g00ecf