From 188bf779dbdc27ad2ec2a3c30fa8ef1ab53f5000 Mon Sep 17 00:00:00 2001 From: Matt Bell Date: Wed, 12 Nov 2014 22:58:36 -0800 Subject: [PATCH] Removed cmdInvocation.root --- cmd/ipfs2/main.go | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cmd/ipfs2/main.go b/cmd/ipfs2/main.go index 0ef3ac69a..f6cb0fc03 100644 --- a/cmd/ipfs2/main.go +++ b/cmd/ipfs2/main.go @@ -36,7 +36,6 @@ const ( type cmdInvocation struct { path []string cmd *cmds.Command - root *cmds.Command req cmds.Request } @@ -64,7 +63,7 @@ func main() { helpFunc = cmdsCli.LongHelp } - helpFunc("ipfs", invoc.root, invoc.path, os.Stderr) + helpFunc("ipfs", Root, invoc.path, os.Stderr) } // parse the commandline into a command invocation @@ -145,7 +144,7 @@ func (i *cmdInvocation) Run() (output io.Reader, err error) { defer stopProfilingFunc() // to be executed as late as possible } - res, err := callCommand(i.req, i.root) + res, err := callCommand(i.req, Root) if err != nil { return nil, err }