@cryptotaxi247 / kubo / commits / 8d7ebcb58

refactor(init) rename extracted method

Brian Tiger Chow committed Nov 4, 2014 at 03:59 UTC 8d7ebcb582cb5a2bdbc62eb54c522530422c0499
1 file changed +2 -2
cmd/ipfs2/init.go
+2 -2
@@ -51,7 +51,7 @@ var initCmd = &cmds.Command{
51 nBitsForKeypair = 4096
52 }
53
54 - err := foo(req.Context().ConfigRoot, dspath, force, nBitsForKeypair)
54 + err := doInit(req.Context().ConfigRoot, dspath, force, nBitsForKeypair)
55 if err != nil {
56 res.SetError(err, cmds.ErrNormal)
57 return
@@ -59,7 +59,7 @@ var initCmd = &cmds.Command{
59 },
60 }
61
62 -func foo(configRoot string, dspath string, force bool, nBitsForKeypair int) error {
62 +func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) error {
63
64 u.POut("initializing ipfs node at %s\n", configRoot)
65 filename, err := config.Filename(configRoot)