cmd/abigen: remove superfluous check that --pkg is not specified

This commit is contained in:
Vitaly Bogdanov 2019-03-04 16:51:45 +03:00
parent fb458280d1
commit a084d0a7df

View file

@ -81,7 +81,7 @@ func main() {
bins []string bins []string
types []string types []string
) )
if *solFlag != "" || *vyFlag != "" || (*abiFlag == "-" && *pkgFlag == "") { if *solFlag != "" || *vyFlag != "" || *abiFlag == "-" {
// Generate the list of types to exclude from binding // Generate the list of types to exclude from binding
exclude := make(map[string]bool) exclude := make(map[string]bool)
for _, kind := range strings.Split(*excFlag, ",") { for _, kind := range strings.Split(*excFlag, ",") {