diff options
author | Janos Guljas <janos@resenje.org> | 2017-12-05 05:29:37 +0800 |
---|---|---|
committer | Janos Guljas <janos@resenje.org> | 2017-12-05 05:29:37 +0800 |
commit | 34edbc8868b84e15d7102a1164c7af8ef4873882 (patch) | |
tree | cb326d6ece2822cb2977f0ea7dfa7aef34fd8818 /swarm | |
parent | 15ad6f27da1bbcb4219f0786d3d08d52c27a4385 (diff) | |
download | go-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.go | 3 |
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) } } |