remove unnecessary code

This commit is contained in:
Chris Lu 2014-03-18 22:32:29 -07:00
parent 92afbb858a
commit 3fec41b911

View file

@ -47,9 +47,6 @@ func (mn *MasterNodes) findMaster() (string, error) {
}
}
}
if len(mn.nodes) == 1 {
return mn.nodes[0], nil
}
if mn.lastNode < 0 {
return "", errors.New("No master node avalable!")
}