diff options
author | Janos Guljas <janos@resenje.org> | 2017-12-05 05:31:00 +0800 |
---|---|---|
committer | Janos Guljas <janos@resenje.org> | 2017-12-05 05:31:00 +0800 |
commit | a758b5cf7ac3111c053bc1275ca849f7aae080e1 (patch) | |
tree | 24a728f98a0004292d3a861ebbafbffc2836ac62 | |
parent | 34edbc8868b84e15d7102a1164c7af8ef4873882 (diff) | |
download | dexon-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.go | 2 |
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) |