Commit a758b5cf authored by Janos Guljas's avatar Janos Guljas

swarm/api: initialize map with make to comply with the convention

parent 34edbc88
...@@ -69,7 +69,7 @@ func MultiResolverOptionWithResolver(r Resolver, tld string) MultiResolverOption ...@@ -69,7 +69,7 @@ func MultiResolverOptionWithResolver(r Resolver, tld string) MultiResolverOption
// NewMultiResolver creates a new instance of MultiResolver. // NewMultiResolver creates a new instance of MultiResolver.
func NewMultiResolver(opts ...MultiResolverOption) (m *MultiResolver) { func NewMultiResolver(opts ...MultiResolverOption) (m *MultiResolver) {
m = &MultiResolver{ m = &MultiResolver{
resolvers: map[string][]Resolver{}, resolvers: make(map[string][]Resolver),
} }
for _, o := range opts { for _, o := range opts {
o(m) o(m)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment