refactor(init) extract response
Brian Tiger Chow committed
Nov 4, 2014 at 03:57 UTC
3b7983e028f8035261df3553dd419b0174ecfb44
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(res, req.Context().ConfigRoot, dspath, force, nBitsForKeypair)
54
+ err := foo(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(res cmds.Response, configRoot string, dspath string, force bool, nBitsForKeypair int) error {
62
+func foo(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)