mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-20 03:12:15 +00:00
refactor: Remove usless catch blocks, and add a linting rule to prevent them (no-changelog) (#12730)
This commit is contained in:
committed by
GitHub
parent
4ee4552b0e
commit
202da76380
@@ -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 ||
|
||||
|
||||
Reference in New Issue
Block a user