docker/swarmkit

View on GitHub
template/expand.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func expandMounts(ctx Context, mounts []api.Mount) ([]api.Mount, error) {
    if len(mounts) == 0 {
        return mounts, nil
    }

Severity: Major
Found in template/expand.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status