rename variable
Brian Tiger Chow committed
Nov 12, 2014 at 00:23 UTC
7060e7dfe2e7a6a9a7226526dfb8cf07983a46d6
1 file changed
+3
-2
cmd/ipfs2/init.go
+3
-2
@@ -50,7 +50,8 @@ var initCmd = &cmds.Command{
50
}
51
52
// TODO add default welcome hash: eaa68bedae247ed1e5bd0eb4385a3c0959b976e4
53
-func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) error {
53
+// NB: if dspath is not provided, it will be retrieved from the config
54
+func doInit(configRoot string, dspathOverride string, force bool, nBitsForKeypair int) error {
55
56
u.POut("initializing ipfs node at %s\n", configRoot)
57
@@ -67,7 +68,7 @@ func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) e
68
}
69
}
70
70
- ds, err := datastoreConfig(dspath)
71
+ ds, err := datastoreConfig(dspathOverride)
72
if err != nil {
73
return err
74
}