0
0
Fork 0

fix issues identified by go vet

This commit is contained in:
Marty Schoch 2014-08-25 09:14:37 -04:00
parent d164b017b2
commit e15cdf608f
3 changed files with 3 additions and 3 deletions

View File

@ -34,7 +34,7 @@ func (h *CreateIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
// find the name of the index to create
indexName := mux.Vars(req)["indexName"]
if indexName == "" {
showError(w, req, fmt.Sprintf("index name is required", indexName), 400)
showError(w, req, "index name is required", 400)
return
}

View File

@ -30,7 +30,7 @@ func (h *DeleteIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request)
// find the name of the index to delete
indexName := mux.Vars(req)["indexName"]
if indexName == "" {
showError(w, req, fmt.Sprintf("index name is required", indexName), 400)
showError(w, req, "index name is required", 400)
return
}

View File

@ -27,7 +27,7 @@ func (h *GetIndexHandler) ServeHTTP(w http.ResponseWriter, req *http.Request) {
// find the name of the index to create
indexName := mux.Vars(req)["indexName"]
if indexName == "" {
showError(w, req, fmt.Sprintf("index name is required", indexName), 400)
showError(w, req, "index name is required", 400)
return
}