Commit 5202f76d authored by Dirk McCormick's avatar Dirk McCormick

Syntactic changes

License: MIT
Signed-off-by: default avatarDirk McCormick <dirkmdev@gmail.com>
parent 350362ca
......@@ -58,7 +58,7 @@ The resolver can recursively resolve:
name := req.Arguments()[0]
resolver := namesys.NewDNSResolver()
ropts := []nsopts.ResolveOpt{}
var ropts []nsopts.ResolveOpt
if !recursive {
ropts = append(ropts, nsopts.Depth(1))
}
......
......@@ -112,7 +112,7 @@ Resolve the value of a dnslink:
recursive, _, _ := req.Option("recursive").Bool()
rc, rcok, _ := req.Option("dht-record-count").Int()
dhtt, dhttok, _ := req.Option("dht-timeout").Int()
ropts := []nsopts.ResolveOpt{}
var ropts []nsopts.ResolveOpt
if !recursive {
ropts = append(ropts, nsopts.Depth(1))
}
......
......@@ -122,7 +122,7 @@ func (api *NameAPI) Resolve(ctx context.Context, name string, opts ...caopts.Nam
name = "/ipns/" + name
}
ropts := []nsopts.ResolveOpt{}
var ropts []nsopts.ResolveOpt
if !options.Recursive {
ropts = append(ropts, nsopts.Depth(1))
}
......
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