From 13e199c07ace641b792c7a22f259769b2533cd9f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E2=81=A3?= <⁣> Date: Wed, 20 May 2020 16:11:38 +0200 Subject: [PATCH] Remove printing in case of success --- go/tests/rc/rc.go | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/go/tests/rc/rc.go b/go/tests/rc/rc.go index 9b04b45e..dd8bd213 100644 --- a/go/tests/rc/rc.go +++ b/go/tests/rc/rc.go @@ -255,10 +255,10 @@ func main() { fsetFile := token.NewFileSet() fsetPkg := token.NewFileSet() - fmt.Println("Parsing") file, err := parser.ParseFile(fsetFile, filename, nil, parser.AllErrors) if err != nil { + fmt.Println("Parsing") fmt.Println(err.Error()) os.Exit(1) } @@ -282,17 +282,12 @@ func main() { analyzeArrayT() analyzeForStmt(allowedImports) - fmt.Println(identation + "OK") - - fmt.Println("Cheating") - if len(illegals) > 0 { + fmt.Println("Cheating") for _, i := range illegals { fmt.Println(identation + i.String()) } os.Exit(1) - } else { - fmt.Println(identation + "OK") } }