mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-02-27 16:17:22 +00:00
swarm/api: initialize map with make to comply with the convention
This commit is contained in:
parent
34edbc8868
commit
a758b5cf7a
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue