diff options
author | Daniel J Walsh <dwalsh@redhat.com> | 2020-04-30 16:25:45 -0400 |
---|---|---|
committer | Daniel J Walsh <dwalsh@redhat.com> | 2020-05-01 13:26:50 -0400 |
commit | 8173e830544e74284c5bd4510f52b9e19fe25baa (patch) | |
tree | 4e866d45570206df84e28ae3f0f05cf828dbad69 /libpod/runtime_pod_linux.go | |
parent | 226e0da6fe12bf8a023f67ce6cebacd54ec65fdc (diff) | |
download | podman-8173e830544e74284c5bd4510f52b9e19fe25baa.tar.gz podman-8173e830544e74284c5bd4510f52b9e19fe25baa.tar.bz2 podman-8173e830544e74284c5bd4510f52b9e19fe25baa.zip |
Fix errors found in coverity scan
Signed-off-by: Daniel J Walsh <dwalsh@redhat.com>
Diffstat (limited to 'libpod/runtime_pod_linux.go')
-rw-r--r-- | libpod/runtime_pod_linux.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libpod/runtime_pod_linux.go b/libpod/runtime_pod_linux.go index 872e8ea8a..73b6c5d9b 100644 --- a/libpod/runtime_pod_linux.go +++ b/libpod/runtime_pod_linux.go @@ -236,7 +236,7 @@ func (r *Runtime) removePod(ctx context.Context, p *Pod, removeCtrs, force bool) } if err := r.removeContainer(ctx, ctr, force, false, true); err != nil { - if removalErr != nil { + if removalErr == nil { removalErr = err } else { logrus.Errorf("Error removing container %s from pod %s: %v", ctr.ID(), p.ID(), err) |