Commit 8d7ebcb5 authored by Brian Tiger Chow's avatar Brian Tiger Chow Committed by Juan Batiz-Benet

refactor(init) rename extracted method

parent 3b7983e0
......@@ -51,7 +51,7 @@ var initCmd = &cmds.Command{
nBitsForKeypair = 4096
}
err := foo(req.Context().ConfigRoot, dspath, force, nBitsForKeypair)
err := doInit(req.Context().ConfigRoot, dspath, force, nBitsForKeypair)
if err != nil {
res.SetError(err, cmds.ErrNormal)
return
......@@ -59,7 +59,7 @@ var initCmd = &cmds.Command{
},
}
func foo(configRoot string, dspath string, force bool, nBitsForKeypair int) error {
func doInit(configRoot string, dspath string, force bool, nBitsForKeypair int) error {
u.POut("initializing ipfs node at %s\n", configRoot)
filename, err := config.Filename(configRoot)
......
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