Skip to content

Return collections so we don't error on a single file#55

Merged
bill-long merged 1 commit into
mainfrom
bilong-getchilditem
Mar 4, 2021
Merged

Return collections so we don't error on a single file#55
bill-long merged 1 commit into
mainfrom
bilong-getchilditem

Conversation

@bill-long
Copy link
Copy Markdown
Member

If it finds nothing on the first line, then the second line fails when it tries to add to null. We should generally wrap these Get-ChildItem calls in @() if we're going to treat the result like a collection.

@bill-long bill-long requested a review from dpaulson45 March 4, 2021 20:08
@bill-long bill-long force-pushed the bilong-getchilditem branch from 0289500 to 3df2f7a Compare March 4, 2021 20:13
@bill-long bill-long merged commit d70010f into main Mar 4, 2021
@bill-long bill-long deleted the bilong-getchilditem branch March 4, 2021 20:22
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