CMSgov/dpc-app

View on GitHub
dpcclient/lib/pki.go

Summary

Maintainability
A
35 mins
Test Coverage

Function SaveDPCKeyPair has 5 return statements (exceeds 4 allowed).
Open

func SaveDPCKeyPair(prefix string, private *rsa.PrivateKey, public *rsa.PublicKey) error {
    if private == nil || public == nil {
        return errors.New("private and/or public key arguments cannot be nil")
    }
    if err := ValidateDPCKey(private); err != nil {
Severity: Major
Found in dpcclient/lib/pki.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status