Skip to content

Commit

Permalink
go: Fix style warning about uppercase error strings
Browse files Browse the repository at this point in the history
  • Loading branch information
svix-jplatte committed Jan 9, 2025
1 parent 77a449b commit df69adb
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions go/webhook.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,11 @@ const webhookSecretPrefix = "whsec_"
var tolerance time.Duration = 5 * time.Minute

var (
errRequiredHeaders = fmt.Errorf("Missing Required Headers")
errInvalidHeaders = fmt.Errorf("Invalid Signature Headers")
errNoMatchingSignature = fmt.Errorf("No matching signature found")
errMessageTooOld = fmt.Errorf("Message timestamp too old")
errMessageTooNew = fmt.Errorf("Message timestamp too new")
errRequiredHeaders = fmt.Errorf("missing required headers")
errInvalidHeaders = fmt.Errorf("invalid signature headers")
errNoMatchingSignature = fmt.Errorf("no matching signature found")
errMessageTooOld = fmt.Errorf("message timestamp too old")
errMessageTooNew = fmt.Errorf("message timestamp too new")
)

func NewWebhook(secret string) (*Webhook, error) {
Expand Down

0 comments on commit df69adb

Please sign in to comment.