Run go fmt
Signed-off-by: Oliver Davies <oliver@oliverdavies.uk>
This commit is contained in:
parent
49d2cd439e
commit
fe1838c7f4
1 changed files with 2 additions and 3 deletions
|
@ -25,7 +25,7 @@ func Handler(w http.ResponseWriter, r *http.Request) {
|
||||||
w.WriteHeader(code)
|
w.WriteHeader(code)
|
||||||
w.Header().Set("Content-Type", "application/json")
|
w.Header().Set("Content-Type", "application/json")
|
||||||
|
|
||||||
if (code != 200) {
|
if code != 200 {
|
||||||
json.NewEncoder(w).Encode(ErrorResponse{
|
json.NewEncoder(w).Encode(ErrorResponse{
|
||||||
Message: "There has been an error.",
|
Message: "There has been an error.",
|
||||||
StatusCode: code,
|
StatusCode: code,
|
||||||
|
@ -36,4 +36,3 @@ func Handler(w http.ResponseWriter, r *http.Request) {
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue