summaryrefslogtreecommitdiff
path: root/cmd/podman/pod_restart.go
diff options
context:
space:
mode:
Diffstat (limited to 'cmd/podman/pod_restart.go')
-rw-r--r--cmd/podman/pod_restart.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/podman/pod_restart.go b/cmd/podman/pod_restart.go
index 0b009e6c7..cc090bd6e 100644
--- a/cmd/podman/pod_restart.go
+++ b/cmd/podman/pod_restart.go
@@ -58,7 +58,7 @@ func podRestartCmd(c *cliconfig.PodRestartValues) error {
for _, p := range restartIDs {
fmt.Println(p)
}
- if conErrors != nil && len(conErrors) > 0 {
+ if len(conErrors) > 0 {
for ctr, err := range conErrors {
if lastError != nil {
logrus.Errorf("%q", lastError)