Skip to content

Issue param in Get-GitHubIssue will always be set to 0#73

Merged
HowardWolosky merged 1 commit intomicrosoft:masterfrom
joseartrivera:joriv/IntIssue
Dec 13, 2018
Merged

Issue param in Get-GitHubIssue will always be set to 0#73
HowardWolosky merged 1 commit intomicrosoft:masterfrom
joseartrivera:joriv/IntIssue

Conversation

@joseartrivera
Copy link
Contributor

@joseartrivera joseartrivera commented Dec 13, 2018

Since we changed the type of issue from string to int, the int will initialize at 0 and will fail our null check. This makes the code think that the Issue Param is always supplied. We should use $PSBoundParameters.ContainsKey to check this instead. This will fix issue #72.

Copy link
Contributor

@HowardWolosky HowardWolosky left a comment

Choose a reason for hiding this comment

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

Thanks for the fix!

@HowardWolosky HowardWolosky merged commit bf67640 into microsoft:master Dec 13, 2018
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