server/pkg/pgp/util.go
Function VerifyPGPSignatures
has 5 arguments (exceeds 4 allowed). Consider refactoring. Open
Open
func VerifyPGPSignatures(pgpSignatures []string, signedReaderFunc func() (io.Reader, error), pgpKeys []string, requiredNumberOfVerifiedSignatures int, logger hclog.Logger) ([]string, int, error) {
Function VerifyPGPSignatures
has 5 return statements (exceeds 4 allowed). Open
Open
func VerifyPGPSignatures(pgpSignatures []string, signedReaderFunc func() (io.Reader, error), pgpKeys []string, requiredNumberOfVerifiedSignatures int, logger hclog.Logger) ([]string, int, error) {
if requiredNumberOfVerifiedSignatures == 0 {
return pgpKeys, 0, nil
}