Skip to content

Commit

Permalink
fix returns
Browse files Browse the repository at this point in the history
  • Loading branch information
Songmu committed May 19, 2016
1 parent d3f6de9 commit d45c9c0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion alerts.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down
2 changes: 1 addition & 1 deletion commands.go
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit d45c9c0

Please sign in to comment.