Showing 1 of 15 total issues
Function readECDSAPrivateKey
has 5 return statements (exceeds 4 allowed). Open
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)
}