@cryptotaxi247 / kubo / commits / 9080a588d

golint: fix variable name

License: MIT Signed-off-by: Steven Allen <steven@stebalien.com>

Steven Allen committed Jan 11, 2018 at 14:01 UTC 9080a588d81f0759f225f65d71efdfb6178e1d41
2 files changed +3 -3
core/corehttp/commands.go
+2 -2
@@ -20,7 +20,7 @@ import (
20 )
21
22 var (
23 - errApiVersionMismatch = errors.New("api version mismatch")
23 + errAPIVersionMismatch = errors.New("api version mismatch")
24 )
25
26 const originEnvKey = "API_ORIGIN"
@@ -157,7 +157,7 @@ func CheckVersionOption() ServeOption {
157 clientVersion := r.UserAgent()
158 // skips check if client is not go-ipfs
159 if clientVersion != "" && strings.Contains(clientVersion, "/go-ipfs/") && daemonVersion != clientVersion {
160 - http.Error(w, fmt.Sprintf("%s (%s != %s)", errApiVersionMismatch, daemonVersion, clientVersion), http.StatusBadRequest)
160 + http.Error(w, fmt.Sprintf("%s (%s != %s)", errAPIVersionMismatch, daemonVersion, clientVersion), http.StatusBadRequest)
161 return
162 }
163 }
core/corehttp/option_test.go
+1 -1
@@ -20,7 +20,7 @@ type testcasecheckversion struct {
20
21 func (tc testcasecheckversion) body() string {
22 if !tc.shouldHandle && tc.responseBody == "" {
23 - return fmt.Sprintf("%s (%s != %s)\n", errApiVersionMismatch, config.ApiVersion, tc.userAgent)
23 + return fmt.Sprintf("%s (%s != %s)\n", errAPIVersionMismatch, config.ApiVersion, tc.userAgent)
24 }
25
26 return tc.responseBody