From 98c939a57ad881162a4469bdaed37c341949f76e Mon Sep 17 00:00:00 2001 From: Yota Toyama Date: Sat, 18 Nov 2017 13:11:35 +0900 Subject: [PATCH] Don't show filenames on successful checks --- main.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/main.go b/main.go index 5c1930d..1022e9a 100644 --- a/main.go +++ b/main.go @@ -45,10 +45,14 @@ func main() { for i := 0; i < len(fs); i++ { r := <-rc + verbose := args["--verbose"].(bool) - ok = ok && r.Ok() - - printToStderr(r.String(args["--verbose"].(bool))) + if !r.Ok() { + ok = false + printToStderr(r.String(verbose)) + } else if r.Ok() && verbose { + printToStderr(r.String(true)) + } } if !ok {