grokify/mogo

View on GitHub
crypto/x509util/x509util.go

Summary

Maintainability
A
40 mins
Test Coverage

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

func GetRSAPublicKeyForPKCS8PublicKeyPath(pubKeyPkcs8Path string) (*rsa.PublicKey, error) {
    var pubKey *rsa.PublicKey

    isFile, err := osutil.IsFile(pubKeyPkcs8Path, true)
    if err != nil {
Severity: Major
Found in crypto/x509util/x509util.go - About 40 mins to fix

    There are no issues that match your filters.

    Category
    Status