Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Hugo Gonzalez Labrador committed Jan 15, 2021
1 parent 7f5b7dd commit 258fae6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions pkg/metrics/driver/xcloud/xcloud.go
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,11 @@ func (d *CloudDriver) refresh() error {

// send to register if catalog is set
req, err = http.NewRequest("POST", d.catalog, bytes.NewBuffer(j))
if err != nil {
log.Err(err).Msgf("xcloud: error creating POST request to: %s", d.catalog)
return err
}

resp, err = client.Do(req)
if err != nil {
log.Err(err).Msgf("xcloud: error registering catalog info to: %s with info: %s", d.catalog, string(j))
Expand Down

0 comments on commit 258fae6

Please sign in to comment.