Commit 9080a588 authored by Steven Allen's avatar Steven Allen Committed by Jeromy

golint: fix variable name

License: MIT
Signed-off-by: default avatarSteven Allen <steven@stebalien.com>
parent 6bf29205
......@@ -20,7 +20,7 @@ import (
)
var (
errApiVersionMismatch = errors.New("api version mismatch")
errAPIVersionMismatch = errors.New("api version mismatch")
)
const originEnvKey = "API_ORIGIN"
......@@ -157,7 +157,7 @@ func CheckVersionOption() ServeOption {
clientVersion := r.UserAgent()
// skips check if client is not go-ipfs
if clientVersion != "" && strings.Contains(clientVersion, "/go-ipfs/") && daemonVersion != clientVersion {
http.Error(w, fmt.Sprintf("%s (%s != %s)", errApiVersionMismatch, daemonVersion, clientVersion), http.StatusBadRequest)
http.Error(w, fmt.Sprintf("%s (%s != %s)", errAPIVersionMismatch, daemonVersion, clientVersion), http.StatusBadRequest)
return
}
}
......
......@@ -20,7 +20,7 @@ type testcasecheckversion struct {
func (tc testcasecheckversion) body() string {
if !tc.shouldHandle && tc.responseBody == "" {
return fmt.Sprintf("%s (%s != %s)\n", errApiVersionMismatch, config.ApiVersion, tc.userAgent)
return fmt.Sprintf("%s (%s != %s)\n", errAPIVersionMismatch, config.ApiVersion, tc.userAgent)
}
return tc.responseBody
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment