revert: "fix: wrap external hooks calls in a try catch" (#4225)

This commit is contained in:
Omar Ajoue 2022-09-29 11:33:02 +02:00 committed by GitHub
parent 8b0ccc017b
commit de4dd53a53
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -88,13 +88,8 @@ class ExternalHooksClass implements IExternalHooksClass {
}
for (const externalHookFunction of this.externalHooks[hookName]) {
try {
// eslint-disable-next-line no-await-in-loop
await externalHookFunction.apply(externalHookFunctions, hookParameters);
} catch (error) {
// eslint-disable-next-line @typescript-eslint/no-unsafe-member-access, @typescript-eslint/restrict-template-expressions
LoggerProxy.info(`Error in external hook "${hookName}": ${error.message}`);
}
// eslint-disable-next-line no-await-in-loop, @typescript-eslint/await-thenable
await externalHookFunction.apply(externalHookFunctions, hookParameters);
}
}