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

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

Merged
merged 1 commit into from
Dec 13, 2018

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
Member

@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