sgaunet/jwt-cli

View on GitHub

Showing 1 of 15 total issues

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

func readECDSAPrivateKey(privateKeyFile string) (crypto.PrivateKey, crypto.PublicKey, error) {
    contentKeyFile, err := os.ReadFile(privateKeyFile)
    if err != nil {
        return nil, nil, fmt.Errorf("error reading private key file: %v", err)
    }
Severity: Major
Found in pkg/cryptojwt/esjwt.go - About 35 mins to fix
    Severity
    Category
    Status
    Source
    Language