Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upThere's an alert of "the variable is assigned but never used" but it was assigned before. #1578
Labels
Comments
|
Duplicate of #1031 |
|
This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I receive the alert within a Foreach-Object structure for previously declared variables. Note lines 18, 22, 26, 30, 34 and 38. I also attached the Atualizar_39_para_40.zip file that contains all the script I wrote.
Atualizar_39_para_40.zip
The variable 'foo' is assigned but never used. PSScriptAnalyzer(PSUseDeclaredVarsMoreThanAssignments)