Skip to content

Commit

Permalink
Merge pull request moby#48771 from thaJeztah/cdi_noshadow
Browse files Browse the repository at this point in the history
daemon: cdiHandler.getErrors: remove var that shadowed import
  • Loading branch information
vvoland authored Oct 28, 2024
2 parents 22d94b2 + 4e5c7ee commit 89c0170
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions daemon/cdi.go
Original file line number Diff line number Diff line change
Expand Up @@ -99,10 +99,8 @@ func (c *cdiHandler) injectCDIDevices(s *specs.Spec, dev *deviceInstance) error

// getErrors returns a single error representation of errors that may have occurred while refreshing the CDI registry.
func (c *cdiHandler) getErrors() error {
errors := c.registry.GetErrors()

var err *multierror.Error
for _, errs := range errors {
for _, errs := range c.registry.GetErrors() {
err = multierror.Append(err, errs...)
}
return err.ErrorOrNil()
Expand Down

0 comments on commit 89c0170

Please sign in to comment.