swarm/api: remove unneeded assignment in MultiResolverOptionWithResolver

This commit is contained in:
Janos Guljas 2017-12-04 22:29:37 +01:00
parent 15ad6f27da
commit 34edbc8868
1 changed files with 0 additions and 3 deletions

View File

@ -62,9 +62,6 @@ type MultiResolverOption func(*MultiResolver)
// of addresses which do not have their TLD resolver specified.
func MultiResolverOptionWithResolver(r Resolver, tld string) MultiResolverOption {
return func(m *MultiResolver) {
if _, ok := m.resolvers[tld]; !ok {
m.resolvers[tld] = []Resolver{}
}
m.resolvers[tld] = append(m.resolvers[tld], r)
}
}