Skip to content

Conversation

@Maamue
Copy link
Contributor

@Maamue Maamue commented Mar 1, 2020

Invoke() on a scriptblock returns an (empty) collection,
but only a signle $null value is expected.
Using InvokeReturnAsIs() fixes this issue.

Checklist

  • Pull Request has a meaningful title.
  • Summarised changes.
  • Pull Request is ready to merge & is not WIP.
  • Added tests / only testable interactively.
    • Make sure you add a new test if old tests do not effectively test the code changed.
  • Added documentation / opened issue to track adding documentation at a later date.

Invoke() on a scriptblock returns an (empty) collection,
but only a signle $null value is expected.
Using InvokeReturnAsIs() fixes this issue.
@vexx32 vexx32 added Category-Koans Invoking the Great Doubt PR-Needs-Review 🔍 Let's take a closer look! labels Mar 2, 2020
Copy link
Owner

@vexx32 vexx32 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 fixing this! Looks good to me! 😊 💖 🌸

@vexx32 vexx32 removed the PR-Needs-Review 🔍 Let's take a closer look! label Mar 2, 2020
@vexx32 vexx32 merged commit 5fcb07f into vexx32:master Mar 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Category-Koans Invoking the Great Doubt

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants