Commit 34edbc88 authored by Janos Guljas's avatar Janos Guljas

swarm/api: remove unneeded assignment in MultiResolverOptionWithResolver

parent 15ad6f27
......@@ -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)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment