mirror of https://github.com/status-im/consul.git
make pretty condition more readable
This commit is contained in:
parent
ed6dd856dc
commit
e3c4052982
|
@ -137,11 +137,9 @@ func (s *HTTPServer) wrap(handler func(resp http.ResponseWriter, req *http.Reque
|
|||
return
|
||||
}
|
||||
|
||||
var prettyPrint bool
|
||||
prettyPrint := false
|
||||
if req.URL.Query().Get("pretty") == "true" {
|
||||
prettyPrint = true
|
||||
} else {
|
||||
prettyPrint = false
|
||||
}
|
||||
// Write out the JSON object
|
||||
if obj != nil {
|
||||
|
|
Loading…
Reference in New Issue