docker/swarmkit

View on GitHub
manager/deks.go

Summary

Maintainability
A
35 mins
Test Coverage

Method RaftDEKManager.GetKeys has 5 return statements (exceeds 4 allowed).
Open

func (r *RaftDEKManager) GetKeys() raft.EncryptionKeys {
    var newKeys, originalKeys raft.EncryptionKeys
    err := r.kw.ViewAndUpdateHeaders(func(h ca.PEMKeyHeaders) (ca.PEMKeyHeaders, error) {
        data, ok := h.(RaftDEKData)
        if !ok {
Severity: Major
Found in manager/deks.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status