Skip to content

Commit

Permalink
Syntactic changes
Browse files Browse the repository at this point in the history
License: MIT
Signed-off-by: Dirk McCormick <[email protected]>
  • Loading branch information
dirkmc committed Mar 1, 2018
1 parent 350362c commit 5202f76
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion core/commands/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
2 changes: 1 addition & 1 deletion core/commands/ipns.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down
2 changes: 1 addition & 1 deletion core/coreapi/name.go
Original file line number Diff line number Diff line change
Expand Up @@ -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))
}
Expand Down

0 comments on commit 5202f76

Please sign in to comment.