fix(core): Fix linter error (#4808)
This commit is contained in:
@@ -177,7 +177,7 @@ export class AwsSnsTrigger implements INodeType {
|
||||
data,
|
||||
'ListSubscriptionsByTopicResponse.ListSubscriptionsByTopicResult.Subscriptions',
|
||||
);
|
||||
if (!subscriptions || !subscriptions.member) {
|
||||
if (!subscriptions?.member) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
@@ -124,7 +124,7 @@ export class GoogleSheet {
|
||||
const foundItem = response.sheets.find(
|
||||
(item: { properties: { sheetId: number } }) => item.properties.sheetId === +sheetId,
|
||||
);
|
||||
if (!foundItem || !foundItem.properties || !foundItem.properties.title) {
|
||||
if (!foundItem?.properties?.title) {
|
||||
throw new Error(`Sheet with id ${sheetId} not found`);
|
||||
}
|
||||
return foundItem.properties.title;
|
||||
|
||||
Reference in New Issue
Block a user