diff options
author | OpenShift Merge Robot <openshift-merge-robot@users.noreply.github.com> | 2020-05-01 21:32:22 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-01 21:32:22 +0200 |
commit | 0fd8242f9100806fed4e2abfcae7ea3409050539 (patch) | |
tree | 17806ab22aaabf3d360dd54de9af32fc3cef3a05 /libpod/runtime_pod_linux.go | |
parent | 54fa377faf89b27183a789bd98084ea02c4cd4a1 (diff) | |
parent | 8173e830544e74284c5bd4510f52b9e19fe25baa (diff) | |
download | podman-0fd8242f9100806fed4e2abfcae7ea3409050539.tar.gz podman-0fd8242f9100806fed4e2abfcae7ea3409050539.tar.bz2 podman-0fd8242f9100806fed4e2abfcae7ea3409050539.zip |
Merge pull request #6058 from rhatdan/coverity
Fix errors found in coverity scan
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) |