Skip to content

Conversation

@opto
Copy link
Contributor

@opto opto commented Oct 2, 2024

this doesn't always throw so we nedd to take care of it returning null

@opto opto requested a review from kewisch as a code owner October 2, 2024 07:18
try {
this.capabilities = JSON.parse(super.getProperty("extensionCapabilities"));
this.capabilities = JSON.parse(super.getProperty("extensionCapabilities"))||
this.extension.manifest.calendar_provider.capabilities || {};
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I see a little duplication between the try and the catch block. Could you pull the fallback out of the try catch to avoid the duplication?

@kewisch kewisch merged commit e730a7b into thunderbird:main Jan 13, 2025
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants