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

Replace Get-Unique for unsorted lists #463

Closed
wants to merge 1 commit into from
Closed

Replace Get-Unique for unsorted lists #463

wants to merge 1 commit into from

Conversation

johnheusinger
Copy link
Contributor

PR Summary

Resolves #459

Context

Since Get-Unique only works on sorted lists, this check was not sufficient to ensure that no items were repeated.

Changes

Replace instances of Get-Unique with Select-Object -Unique which does not require the list to be sorted first.

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.

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.

Get-Unique is used on unsorted collections
1 participant