mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-05-12 11:06:40 +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.
|
// 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)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue