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

This commit is contained in:
Janos Guljas 2017-12-04 22:31:00 +01:00
parent 34edbc8868
commit a758b5cf7a

View File

@ -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)