mirror of
https://github.com/seaweedfs/seaweedfs.git
synced 2024-01-19 02:48:24 +00:00
remove unnecessary code
This commit is contained in:
parent
92afbb858a
commit
3fec41b911
|
@ -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!")
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue