docker/swarmkit

View on GitHub
manager/drivers/secrets.go

Summary

Maintainability
A
35 mins
Test Coverage

Method SecretDriver.Get has 5 return statements (exceeds 4 allowed).
Open

func (d *SecretDriver) Get(spec *api.SecretSpec, task *api.Task) ([]byte, bool, error) {
    if spec == nil {
        return nil, false, fmt.Errorf("secret spec is nil")
    }
    if task == nil {
Severity: Major
Found in manager/drivers/secrets.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status