mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 10:22:23 +00:00
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:
parent
6cd053bcfe
commit
7e3e4846d0
1 changed files with 1 additions and 6 deletions
|
|
@ -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, "", "", "", "")
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue