Skip to content

Commit

Permalink
refactor: simplifies sending to the channel
Browse files Browse the repository at this point in the history
  • Loading branch information
VAveryanov8 committed Dec 13, 2024
1 parent 4e49675 commit d85eeea
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pkg/cloudmeta/metadata.go
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,9 @@ func (cloud *CloudMeta) GetInstanceMetadata(ctx context.Context) (InstanceMetada
select {
case <-ctx.Done():
return
default:
case results <- msg{meta: meta, err: err}:
}

results <- msg{meta: meta, err: err}
}(provider)

Check failure on line 82 in pkg/cloudmeta/metadata.go

View workflow job for this annotation

GitHub Actions / Various checks

unnecessary trailing newline (whitespace)
}

Expand Down

0 comments on commit d85eeea

Please sign in to comment.