From d45c9c0dbfa82e7634acfb6f18e995f1f051dddd Mon Sep 17 00:00:00 2001 From: Songmu Date: Thu, 19 May 2016 11:00:58 +0900 Subject: [PATCH] fix returns --- alerts.go | 2 +- commands.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/alerts.go b/alerts.go index ac51c6d3..456097f4 100644 --- a/alerts.go +++ b/alerts.go @@ -188,7 +188,7 @@ func doAlertsRetrieve(c *cli.Context) error { alerts, err := client.FindAlerts() logger.DieIf(err) PrettyPrintJSON(alerts) - return + return nil } func doAlertsList(c *cli.Context) error { diff --git a/commands.go b/commands.go index 1131bb2d..c4043e82 100644 --- a/commands.go +++ b/commands.go @@ -492,7 +492,7 @@ func doRetire(c *cli.Context) error { if !force && !prompter.YN("Retire following hosts.\n "+strings.Join(argHostIDs, "\n ")+"\nAre you sure?", true) { logger.Log("", "retirement is canceled.") - return + return nil } client := newMackerel(conffile)