From e3c405298259662fc5b9b4e6d99f8bc9f0edde05 Mon Sep 17 00:00:00 2001 From: Eric Connell Date: Fri, 1 Aug 2014 14:24:36 -0600 Subject: [PATCH] make pretty condition more readable --- command/agent/http.go | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/command/agent/http.go b/command/agent/http.go index 300d165fdb..cc37b2db9b 100644 --- a/command/agent/http.go +++ b/command/agent/http.go @@ -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 {