pkg/websub/signature.go
Function ValidateHubSignature
has 5 return statements (exceeds 4 allowed). Open
Open
func ValidateHubSignature(sig string, feedContent, secret []byte) error {
parts := strings.Split(sig, "=")
if len(parts) != 2 {
return errors.New("signature format is not like sha1=signature")
- Create a ticketCreate a ticket