mirror of
https://github.com/n8n-io/n8n.git
synced 2024-12-24 20:24:05 -08:00
fix(core): Fix linter error (#4808)
This commit is contained in:
parent
61e26804ba
commit
3bb3809eec
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue