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 handling of -WhatIf in core functions #213

Merged
merged 2 commits into from
Jun 1, 2020

Conversation

HowardWolosky
Copy link
Member

WhatIf support has now been simiplified in all API's that eventually
call into Invoke-GHRestMethod. There's now a single check at the
top of that function which checks if it should continue or not. If it
shouldn't, it early returns in order to avoid any code that might access
uninitialized content from outside of the ShouldProcess blocks later on.

Resolves #197

WhatIf support has now been simiplified in all API's that eventually
call into `Invoke-GHRestMethod`.  There's now a single check at the
top of that function which checks if it should continue or not.  If it
shouldn't, it early returns in order to avoid any code that might access
uninitialized content from outside of the ShouldProcess blocks later on.

Resolves microsoft#197
@HowardWolosky HowardWolosky added the bug This relates to a bug in the existing module. label Jun 1, 2020
@HowardWolosky
Copy link
Member Author

cc: @X-Guardian

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This relates to a bug in the existing module.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

New-GitHubRepository: Exception When Specifying the WhatIf Parameter
1 participant