diff options
author | Christian Pointner <equinox@helsinki.at> | 2015-12-31 09:56:21 (GMT) |
---|---|---|
committer | Christian Pointner <equinox@helsinki.at> | 2015-12-31 09:56:21 (GMT) |
commit | 016803268a21b5b341760875ea692c58d185dbda (patch) | |
tree | 9bda884d90644233cad969cd12d5fea372c97492 /src/helsinki.at/rhimportd/ctrlWebSimple.go | |
parent | 0ef8fcb03fc4f51b8bc6b1a24f2e964b6a03d50c (diff) |
improved coding style
Diffstat (limited to 'src/helsinki.at/rhimportd/ctrlWebSimple.go')
-rw-r--r-- | src/helsinki.at/rhimportd/ctrlWebSimple.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/helsinki.at/rhimportd/ctrlWebSimple.go b/src/helsinki.at/rhimportd/ctrlWebSimple.go index 12e17a3..7a7af92 100644 --- a/src/helsinki.at/rhimportd/ctrlWebSimple.go +++ b/src/helsinki.at/rhimportd/ctrlWebSimple.go @@ -30,7 +30,6 @@ import ( "helsinki.at/rhimport" "html" "net/http" - _ "net/http/pprof" ) type webSimpleRequestData struct { @@ -75,11 +74,11 @@ type webSimpleResponseData struct { Cut uint `json:"CUT_NUMBER"` } -func webSimpleErrorResponse(w http.ResponseWriter, code int, error_str string) { +func webSimpleErrorResponse(w http.ResponseWriter, code int, errStr string) { w.Header().Set("Content-Type", "application/json") w.WriteHeader(http.StatusInternalServerError) encoder := json.NewEncoder(w) - respdata := webSimpleResponseData{code, error_str, 0, 0} + respdata := webSimpleResponseData{code, errStr, 0, 0} encoder.Encode(respdata) } |