remove an unnecessary log in subnet pkg (#1471)
Co-authored-by: Alex <33497058+bexsoft@users.noreply.github.com>
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user