Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix IRawGalleryExtension.shortDescription can be undefined. #202780

Merged
merged 1 commit into from Feb 22, 2024

Conversation

petvas
Copy link
Contributor

@petvas petvas commented Jan 18, 2024

IRawGalleryExtension.shortDescription can be undefined, some extensions doesn't have a "shortDescription" like: "temakulakov.hackjb"

The original code already tested if galleryExtension.shortDescription is undefined using ||. This update makes galleryExtension Interface shortDescription field optional and the check using ?? for null or undefined.

@sandy081
Copy link
Member

This does not fixes anything as the current logic is already handling for undefined. Hence closing this PR.

@sandy081 sandy081 closed this Jan 22, 2024
@petvas
Copy link
Contributor Author

petvas commented Jan 22, 2024

This does not fixes anything as the current logic is already handling for undefined. Hence closing this PR.

I respectfully disagree. The type definition is incorrect because it defines an optional field as non-optional.

@sandy081 sandy081 reopened this Jan 24, 2024
@sandy081 sandy081 added this to the February 2024 milestone Jan 24, 2024
…ions doesn't have a "shortDescription" like: "temakulakov.hackjb"
@sandy081 sandy081 enabled auto-merge (squash) February 22, 2024 09:47
@sandy081 sandy081 merged commit 6eec64e into microsoft:main Feb 22, 2024
6 checks 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.

None yet

5 participants