[REV] remove return

This commit is contained in:
bay1ts 2017-11-22 16:36:54 +08:00
parent 7a2a4d6117
commit b96090f9bd
2 changed files with 1 additions and 2 deletions

View File

@ -176,7 +176,7 @@ func checkEventTimeOut(event *dbmodel.ServiceEvent) (bool, error) {
func handleStatus(status int, err error, w http.ResponseWriter, r *http.Request) {
if status != 0 {
logrus.Error("应用启动任务发送失败 "+err.Error(), map[string]string{"step": "callback", "status": "failure"})
//logrus.Error("应用启动任务发送失败 "+err.Error(), map[string]string{"step": "callback", "status": "failure"})
if status == 2 {
httputil.ReturnError(r, w, 400, "last event unfinish.")
return

View File

@ -53,7 +53,6 @@ func NewCmdInit() cli.Command {
},
Usage: "初始化集群。grctl init cluster",
Action: func(c *cli.Context) error {
Common(c)
return initCluster(c)
},
}