We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Array#includes
indexOf
1 parent 67ec3ff commit 9d85f76Copy full SHA for 9d85f76
src/event-handler/on.ts
@@ -40,7 +40,7 @@ export function receiverOn(
40
throw new Error(message);
41
}
42
43
- if (emitterEventNames.indexOf(webhookNameOrNames) === -1) {
+ if (!emitterEventNames.includes(webhookNameOrNames)) {
44
state.log.warn(
45
`"${webhookNameOrNames}" is not a known webhook name (https://developer.github.com/v3/activity/events/types/)`
46
);
0 commit comments