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

(MAINT) Only write attributes if parameter is not null #97

Merged
merged 1 commit into from
Dec 2, 2020
Merged

(MAINT) Only write attributes if parameter is not null #97

merged 1 commit into from
Dec 2, 2020

Conversation

michaeltlombardi
Copy link

Prior to this commit the Get-TypeContent function would sometimes pass
a null object to Get-TypeParameterContent which would then write a non-
functional attribute definition, breaking the type.

I was not able to discover how this was happening, but this small patch
seemed like a sensible enough guard given prioritization.

Prior to this commit the Get-TypeContent function would sometimes pass
a null object to Get-TypeParameterContent which would then write a non-
functional attribute definition, breaking the type.

I was not able to discover how this was happening, but this small patch
seemed like a sensible enough guard given prioritization.
@michaeltlombardi michaeltlombardi added the bug Something isn't working label Dec 2, 2020
@michaeltlombardi michaeltlombardi requested a review from a team as a code owner December 2, 2020 03:33
Copy link

@pmcmaw pmcmaw left a comment

Choose a reason for hiding this comment

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

LGTM. 👍

@pmcmaw pmcmaw merged commit 55a4bed into puppetlabs:main Dec 2, 2020
@michaeltlombardi michaeltlombardi deleted the maint/main/patch-null-attribute-export branch December 11, 2020 13:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants