@cryptotaxi247 / kubo / commits / 6f08c9e46

Refactor code

Keep the code style consistent. since all package alias are lowercase words, no need Camel Peak Name. License: MIT Signed-off-by: Spartucus <niubob@163.com>

Spartucus committed Jul 9, 2018 at 16:36 UTC 6f08c9e466da0ab5f749b6e1ea5661c7762c15c1
1 file changed +2 -2
cmd/ipfs/main.go
+2 -2
@@ -18,7 +18,7 @@ import (
18
19 oldcmds "github.com/ipfs/go-ipfs/commands"
20 core "github.com/ipfs/go-ipfs/core"
21 - coreCmds "github.com/ipfs/go-ipfs/core/commands"
21 + corecmds "github.com/ipfs/go-ipfs/core/commands"
22 corehttp "github.com/ipfs/go-ipfs/core/corehttp"
23 loader "github.com/ipfs/go-ipfs/plugin/loader"
24 repo "github.com/ipfs/go-ipfs/repo"
@@ -233,7 +233,7 @@ func commandShouldRunOnDaemon(details cmdDetails, req *cmds.Request, cctx *oldcm
233 // to this point so that we don't check unnecessarily
234
235 // did user specify an api to use for this command?
236 - apiAddrStr, _ := req.Options[coreCmds.ApiOption].(string)
236 + apiAddrStr, _ := req.Options[corecmds.ApiOption].(string)
237
238 client, err := getApiClient(cctx.ConfigRoot, apiAddrStr)
239 if err == repo.ErrApiNotRunning {