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.
This commit is contained in:
Philip Schlump 2018-09-21 09:19:01 -06:00
parent 6cd053bcfe
commit 7e3e4846d0

View file

@ -166,10 +166,5 @@ func contractsFromStdin() (map[string]*compiler.Contract, error) {
return nil, err return nil, err
} }
code, err := compiler.ParseCombinedJSON(bytes, "", "", "", "") return compiler.ParseCombinedJSON(bytes, "", "", "", "")
if err != nil {
fmt.Printf("Error from parse: %s\n", err)
return nil, err
}
return code, nil
} }