From 7e3e4846d0cc765b7ed296d591a6c51ca24a4a6a Mon Sep 17 00:00:00 2001 From: Philip Schlump Date: Fri, 21 Sep 2018 09:19:01 -0600 Subject: [PATCH] Improved to just return the parse output Change contratsFromStdin to return the output from the parse as there is no need to double capture the error. --- cmd/abigen/main.go | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/cmd/abigen/main.go b/cmd/abigen/main.go index 994fc13503..b385323e69 100644 --- a/cmd/abigen/main.go +++ b/cmd/abigen/main.go @@ -166,10 +166,5 @@ func contractsFromStdin() (map[string]*compiler.Contract, error) { return nil, err } - code, err := compiler.ParseCombinedJSON(bytes, "", "", "", "") - if err != nil { - fmt.Printf("Error from parse: %s\n", err) - return nil, err - } - return code, nil + return compiler.ParseCombinedJSON(bytes, "", "", "", "") }