Skip to content
This repository was archived by the owner on Jun 8, 2023. It is now read-only.

Commit ef1fe16

Browse files
committed
Remove exclamation from method signature
1 parent dc51a68 commit ef1fe16

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

server.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ class GHAapp < Sinatra::Application
1616
# environment variable in PEM format.
1717
PRIVATE_KEY = OpenSSL::PKey::RSA.new(ENV['GITHUB_PRIVATE_KEY'].gsub('\n', "\n"))
1818

19-
# Your registered app must set have a secret set. The secret is used to verify
19+
# Your registered app must have a secret set. The secret is used to verify
2020
# that webhooks are sent by GitHub.
2121
WEBHOOK_SECRET = ENV['GITHUB_WEBHOOK_SECRET']
2222

@@ -32,7 +32,7 @@ class GHAapp < Sinatra::Application
3232
# Executed before each request to the `/event_handler` route
3333
before '/event_handler' do
3434
get_payload_request(request)
35-
verify_webhook_signature!
35+
verify_webhook_signature
3636
authenticate_app
3737
# Authenticate the app installation in order to run API operations
3838
authenticate_installation(@payload)

template_server.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ class GHAapp < Sinatra::Application
4949
# Before each request to the `/event_handler` route
5050
before '/event_handler' do
5151
get_payload_request(request)
52-
verify_webhook_signature!
52+
verify_webhook_signature
5353
authenticate_app
5454
# Authenticate the app installation in order to run API operations
5555
authenticate_installation(@payload)

0 commit comments

Comments
 (0)