From 063cd8df7a47b493161710607a897b58b94b6db6 Mon Sep 17 00:00:00 2001 From: Kevin Burke Date: Mon, 22 Jun 2015 16:15:29 -0700 Subject: [PATCH] only print the response body if verbose is true --- lucifer/main.go | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lucifer/main.go b/lucifer/main.go index 0efeb53..99804f3 100644 --- a/lucifer/main.go +++ b/lucifer/main.go @@ -142,7 +142,9 @@ func doInvalidate(flags *flag.FlagSet, sync bool, verbose bool) { if err != nil { handleError(err, verbose) } - fmt.Println(body) + if verbose { + fmt.Println(body) + } } func doRun(flags *flag.FlagSet, bail bool, verbose bool, grep string) { @@ -155,7 +157,9 @@ func doRun(flags *flag.FlagSet, bail bool, verbose bool, grep string) { if err != nil { handleError(err, verbose) } - fmt.Println(body) + if verbose { + fmt.Println(body) + } } func main() {