dotcloud/docker

View on GitHub
daemon/cdi.go

Summary

Maintainability
A
35 mins
Test Coverage

Method cdiHandler.injectCDIDevices has 5 return statements (exceeds 4 allowed).
Open

func (c *cdiHandler) injectCDIDevices(s *specs.Spec, dev *deviceInstance) error {
    if dev.req.Count != 0 {
        return errdefs.InvalidParameter(errors.New("unexpected count in CDI device request"))
    }
    if len(dev.req.Options) > 0 {
Severity: Major
Found in daemon/cdi.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status