We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee7a6ec commit af93108Copy full SHA for af93108
1 file changed
src/WebHook.js
@@ -22,7 +22,7 @@ class GitHubWebhook extends EventEmitter2 {
22
throw new Error('GitHub WebHook requires a port to run on');
23
}
24
25
- if (typeof options.secret !== 'string') {
+ if (typeof options.secret !== 'string' || options.secret === '') {
26
throw new Error('GitHub WebHook requires a "secret"');
27
28
0 commit comments