remove an unnecessary log in subnet pkg (#1471)

Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com>
This commit is contained in:
Harshavardhana
2022-01-27 11:27:44 -08:00
committed by GitHub
parent 5f5c00adb5
commit 382e315668

View File

@@ -78,9 +78,8 @@ func GetOrganizations(client cluster.HTTPClientI, token string) ([]*models.Subne
return nil, err
}
var organizations []*models.SubnetOrganization
err = json.Unmarshal([]byte(respStr), &organizations)
if err != nil {
log.Println(err)
if err = json.Unmarshal([]byte(respStr), &organizations); err != nil {
return nil, err
}
return organizations, nil
}