X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/0561bd0c3c07257fd58ded6c7cfa5feeae97af57..3fa6aa4043286ad61e5f29c136d3cc2942e8750d:/sdk/go/keepclient/root_sorter.go diff --git a/sdk/go/keepclient/root_sorter.go b/sdk/go/keepclient/root_sorter.go index afeb802849..c46b7185e6 100644 --- a/sdk/go/keepclient/root_sorter.go +++ b/sdk/go/keepclient/root_sorter.go @@ -33,10 +33,9 @@ func NewRootSorter(serviceRoots map[string]string, hash string) *RootSorter { func (rs RootSorter) getWeight(hash string, uuid string) string { if len(uuid) == 27 { return Md5String(hash + uuid[12:]) - } else { - // Only useful for testing, a set of one service root, etc. - return Md5String(hash + uuid) } + // Only useful for testing, a set of one service root, etc. + return Md5String(hash + uuid) } func (rs RootSorter) GetSortedRoots() []string {