docker/swarmkit

View on GitHub
swarmd/cmd/swarmctl/common/resolver.go

Summary

Maintainability
A
50 mins
Test Coverage

Method Resolver.get has 8 return statements (exceeds 4 allowed).
Open

func (r *Resolver) get(t interface{}, id string) string {
    switch t.(type) {
    case api.Node:
        res, err := r.c.GetNode(r.ctx, &api.GetNodeRequest{NodeID: id})
        if err != nil {
Severity: Major
Found in swarmd/cmd/swarmctl/common/resolver.go - About 50 mins to fix

    There are no issues that match your filters.

    Category
    Status