docker/swarmkit

View on GitHub
api/genericresource/helpers.go

Summary

Maintainability
A
40 mins
Test Coverage

Function remove has 6 return statements (exceeds 4 allowed).
Open

func remove(na, r *api.GenericResource) bool {
    switch tr := r.Resource.(type) {
    case *api.GenericResource_DiscreteResourceSpec:
        if na.GetDiscreteResourceSpec() == nil {
            return false // Type change, ignore
Severity: Major
Found in api/genericresource/helpers.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status