mirror of
https://gitee.com/rainbond/Rainbond.git
synced 2024-11-30 10:48:15 +08:00
[REV] remove return
This commit is contained in:
parent
7a2a4d6117
commit
b96090f9bd
@ -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
|
||||
|
@ -53,7 +53,6 @@ func NewCmdInit() cli.Command {
|
||||
},
|
||||
Usage: "初始化集群。grctl init cluster",
|
||||
Action: func(c *cli.Context) error {
|
||||
Common(c)
|
||||
return initCluster(c)
|
||||
},
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user