make pretty condition more readable

This commit is contained in:
Eric Connell 2014-08-01 14:24:36 -06:00
parent ec8e271804
commit e31c6b8b83
1 changed files with 1 additions and 3 deletions

View File

@ -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 {