ecadlabs/signatory

View on GitHub
cmd/approve-list-svc/config.go

Summary

Maintainability
A
35 mins
Test Coverage

Method Config.GetPrivateKey has 5 return statements (exceeds 4 allowed).
Open

func (conf *Config) GetPrivateKey() (crypt.PrivateKey, error) {
    var keyData []byte
    if conf.PrivateKey != "" {
        if priv, err := crypt.ParsePrivateKey([]byte(conf.PrivateKey)); err == nil {
            return priv, nil
Severity: Major
Found in cmd/approve-list-svc/config.go - About 35 mins to fix

    There are no issues that match your filters.

    Category
    Status