simplify
This commit is contained in:
parent
724765d1b7
commit
514f581c98
@ -27,10 +27,6 @@ func (c *VersionController) Status() {
|
|||||||
errStr := ""
|
errStr := ""
|
||||||
api := tools.API{}
|
api := tools.API{}
|
||||||
state, code, err := api.GetState()
|
state, code, err := api.GetState()
|
||||||
|
|
||||||
if state == tools.ALIVE {
|
|
||||||
state, _, err = api.CheckRemoteAPIs([]string{})
|
|
||||||
}
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
errStr = err.Error()
|
errStr = err.Error()
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user