提交 8d7ebcb5 作者: Brian Tiger Chow 提交者: Juan Batiz-Benet

refactor(init) rename extracted method

上级 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 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论