@cryptotaxi247 / kubo / commits / 5fe05e9a1

fix linting issue (getApiClient => getAPIClient).

License: MIT Signed-off-by: Raúl Kripalani <raul.kripalani@consensys.net>

Raúl Kripalani committed Aug 11, 2018 at 23:49 UTC 5fe05e9a16a7ccf81317bacc95a0c7c6f102bb95
1 file changed +3 -3
cmd/ipfs/main.go
+3 -3
@@ -239,7 +239,7 @@ func commandShouldRunOnDaemon(details cmdDetails, req *cmds.Request, cctx *oldcm
239 // did user specify an api to use for this command?
240 apiAddrStr, _ := req.Options[corecmds.ApiOption].(string)
241
242 - client, err := getApiClient(req.Context, cctx.ConfigRoot, apiAddrStr)
242 + client, err := getAPIClient(req.Context, cctx.ConfigRoot, apiAddrStr)
243 if err == repo.ErrApiNotRunning {
244 if apiAddrStr != "" && req.Command != daemonCmd {
245 // if user SPECIFIED an api, and this cmd is not daemon
@@ -407,10 +407,10 @@ If you're sure go-ipfs isn't running, you can just delete it.
407 var checkIPFSUnixFmt = "Otherwise check:\n\tps aux | grep ipfs"
408 var checkIPFSWinFmt = "Otherwise check:\n\ttasklist | findstr ipfs"
409
410 -// getApiClient checks the repo, and the given options, checking for
410 +// getAPIClient checks the repo, and the given options, checking for
411 // a running API service. if there is one, it returns a client.
412 // otherwise, it returns errApiNotRunning, or another error.
413 -func getApiClient(ctx context.Context, repoPath, apiAddrStr string) (http.Client, error) {
413 +func getAPIClient(ctx context.Context, repoPath, apiAddrStr string) (http.Client, error) {
414 var apiErrorFmt string
415 switch {
416 case osh.IsUnix():