From 5103ee21aae18b1954b60a28b170d38fe51a5c3d Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Sun, 8 Aug 2021 03:40:08 -0400 Subject: [PATCH] chore: drop redundant if guard --- plugins/ps/subcommands.go | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/plugins/ps/subcommands.go b/plugins/ps/subcommands.go index e34698733..3c4ea73a7 100644 --- a/plugins/ps/subcommands.go +++ b/plugins/ps/subcommands.go @@ -114,11 +114,7 @@ func CommandRetire(appName string) error { } common.LogInfo1("Retiring old containers and images") - if err := common.PlugnTrigger("scheduler-retire", []string{scheduler, appName}...); err != nil { - return err - } - - return nil + return common.PlugnTrigger("scheduler-retire", []string{scheduler, appName}...) } // CommandScale gets or sets how many instances of a given process to run