mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-24 00:39:26 +00:00
swarm/api: remove unneeded assignment in MultiResolverOptionWithResolver
This commit is contained in:
parent
15ad6f27da
commit
34edbc8868
1 changed files with 0 additions and 3 deletions
|
|
@ -62,9 +62,6 @@ type MultiResolverOption func(*MultiResolver)
|
||||||
// of addresses which do not have their TLD resolver specified.
|
// of addresses which do not have their TLD resolver specified.
|
||||||
func MultiResolverOptionWithResolver(r Resolver, tld string) MultiResolverOption {
|
func MultiResolverOptionWithResolver(r Resolver, tld string) MultiResolverOption {
|
||||||
return func(m *MultiResolver) {
|
return func(m *MultiResolver) {
|
||||||
if _, ok := m.resolvers[tld]; !ok {
|
|
||||||
m.resolvers[tld] = []Resolver{}
|
|
||||||
}
|
|
||||||
m.resolvers[tld] = append(m.resolvers[tld], r)
|
m.resolvers[tld] = append(m.resolvers[tld], r)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue