aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJanos Guljas <janos@resenje.org>2017-12-05 05:31:00 +0800
committerJanos Guljas <janos@resenje.org>2017-12-05 05:31:00 +0800
commita758b5cf7ac3111c053bc1275ca849f7aae080e1 (patch)
tree24a728f98a0004292d3a861ebbafbffc2836ac62
parent34edbc8868b84e15d7102a1164c7af8ef4873882 (diff)
downloaddexon-a758b5cf7ac3111c053bc1275ca849f7aae080e1.tar
dexon-a758b5cf7ac3111c053bc1275ca849f7aae080e1.tar.gz
dexon-a758b5cf7ac3111c053bc1275ca849f7aae080e1.tar.bz2
dexon-a758b5cf7ac3111c053bc1275ca849f7aae080e1.tar.lz
dexon-a758b5cf7ac3111c053bc1275ca849f7aae080e1.tar.xz
dexon-a758b5cf7ac3111c053bc1275ca849f7aae080e1.tar.zst
dexon-a758b5cf7ac3111c053bc1275ca849f7aae080e1.zip
swarm/api: initialize map with make to comply with the convention
-rw-r--r--swarm/api/api.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/swarm/api/api.go b/swarm/api/api.go
index 3682ab309..d6e9d3732 100644
--- a/swarm/api/api.go
+++ b/swarm/api/api.go
@@ -69,7 +69,7 @@ func MultiResolverOptionWithResolver(r Resolver, tld string) MultiResolverOption
// NewMultiResolver creates a new instance of MultiResolver.
func NewMultiResolver(opts ...MultiResolverOption) (m *MultiResolver) {
m = &MultiResolver{
- resolvers: map[string][]Resolver{},
+ resolvers: make(map[string][]Resolver),
}
for _, o := range opts {
o(m)