refactor: Remove usless catch blocks, and add a linting rule to prevent them (no-changelog) (#12730)

This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™
2025-01-20 18:20:04 +01:00
committed by GitHub
parent 4ee4552b0e
commit 202da76380
17 changed files with 220 additions and 242 deletions

View File

@@ -877,12 +877,7 @@ export class StripeTrigger implements INodeType {
enabled_events: events,
};
let responseData;
try {
responseData = await stripeApiRequest.call(this, 'POST', endpoint, body);
} catch (error) {
throw error;
}
const responseData = await stripeApiRequest.call(this, 'POST', endpoint, body);
if (
responseData.id === undefined ||