remove unnecessary code
This commit is contained in:
@@ -47,9 +47,6 @@ func (mn *MasterNodes) findMaster() (string, error) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if len(mn.nodes) == 1 {
|
|
||||||
return mn.nodes[0], nil
|
|
||||||
}
|
|
||||||
if mn.lastNode < 0 {
|
if mn.lastNode < 0 {
|
||||||
return "", errors.New("No master node avalable!")
|
return "", errors.New("No master node avalable!")
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user