Skip to content

There's an alert of "the variable is assigned but never used" but it was assigned before. #1578

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

Closed
Cordobel opened this issue Aug 27, 2020 · 2 comments

Comments

@Cordobel
Copy link

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.

2020-08-27_152843

Atualizar_39_para_40.zip

The variable 'foo' is assigned but never used. PSScriptAnalyzer(PSUseDeclaredVarsMoreThanAssignments)

@ghost ghost added the Needs: Triage 🔍 label Aug 27, 2020
@rjmholt
Copy link
Contributor

rjmholt commented Aug 27, 2020

Duplicate of #1031

@rjmholt rjmholt marked this as a duplicate of #1031 Aug 27, 2020
@ghost
Copy link

ghost commented Aug 28, 2020

This issue has been marked as duplicate and has not had any activity for 1 day. It will be closed for housekeeping purposes.

@ghost ghost closed this as completed Aug 28, 2020
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants