aboutsummaryrefslogtreecommitdiffstats
path: root/swarm
diff options
context:
space:
mode:
authorJanos Guljas <janos@resenje.org>2017-12-05 05:29:37 +0800
committerJanos Guljas <janos@resenje.org>2017-12-05 05:29:37 +0800
commit34edbc8868b84e15d7102a1164c7af8ef4873882 (patch)
treecb326d6ece2822cb2977f0ea7dfa7aef34fd8818 /swarm
parent15ad6f27da1bbcb4219f0786d3d08d52c27a4385 (diff)
downloadgo-tangerine-34edbc8868b84e15d7102a1164c7af8ef4873882.tar.gz
go-tangerine-34edbc8868b84e15d7102a1164c7af8ef4873882.tar.zst
go-tangerine-34edbc8868b84e15d7102a1164c7af8ef4873882.zip
swarm/api: remove unneeded assignment in MultiResolverOptionWithResolver
Diffstat (limited to 'swarm')
-rw-r--r--swarm/api/api.go3
1 files changed, 0 insertions, 3 deletions
diff --git a/swarm/api/api.go b/swarm/api/api.go
index d0c3754e0..3682ab309 100644
--- a/swarm/api/api.go
+++ b/swarm/api/api.go
@@ -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)
}
}