| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format) |
| route-controller | voltron_pull_requests_fragments |
| route-action | pull_request_layout |
| fetch-nonce | v2:f86771bc-f566-0f26-5f48-aa4690eb0475 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 972A:99533:460DE1:65A8F0:6AFD83CB |
| html-safe-nonce | 8fbae362f89071c35874c2fedeb840dcca7b90763cd11239cdddfbc07d0f8a36 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzJBOjk5NTMzOjQ2MERFMTo2NUE4RjA6NkFGRDgzQ0IiLCJ2aXNpdG9yX2lkIjoiMTE5NjUwMDQzNTAyMDM4MzE3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 39f645804d8acefb37b731d88765483303a12ec5854ab305b5aee211f01fa373 |
| hovercard-subject-tag | pull_request:985618280 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///voltron/pull_requests_fragments/pull_request_layout |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/17620/pull_request_layout |
| twitter:image | https://opengraph.githubassets.com/e8a5e0d06381b9f406f49adfca7e486f08c5cc0b66843aba932ee97eea083bde/PowerShell/PowerShell/pull/17620 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e8a5e0d06381b9f406f49adfca7e486f08c5cc0b66843aba932ee97eea083bde/PowerShell/PowerShell/pull/17620 |
| og:image:alt | PR Summary
Most variables that I've found to be unused has been replaced with discards. See: https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/discards
I simply searched fo... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | MartinGC94 |
| hostname | github.com |
| expected-hostname | github.com |
| None | 42d4967e3c8afca51ccac31f419a705af777226a95f025ea73387d87a306b326 |
| turbo-cache-control | no-cache |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2329ceed0bc2c7b7c3b9f5f2db6abfc7b6fc3a50 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | pull-requests |
| Skip to content | https://github.com/PowerShell/PowerShell/pull/17620#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F17620 |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F17620 |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShell |
| Reload | https://github.com/PowerShell/PowerShell/pull/17620 |
| Reload | https://github.com/PowerShell/PowerShell/pull/17620 |
| Reload | https://github.com/PowerShell/PowerShell/pull/17620 |
| PowerShell | https://github.com/PowerShell |
| PowerShell | https://github.com/PowerShell/PowerShell |
| Code | https://github.com/PowerShell/PowerShell |
| Issues1.3k (1.3k) | https://github.com/PowerShell/PowerShell/issues |
| Pull requests366 (366) | https://github.com/PowerShell/PowerShell/pulls |
| Discussions | https://github.com/PowerShell/PowerShell/discussions |
| Actions | https://github.com/PowerShell/PowerShell/actions |
| Projects | https://github.com/PowerShell/PowerShell/projects |
| Security and quality3 (3) | https://github.com/PowerShell/PowerShell/security |
| Insights | https://github.com/PowerShell/PowerShell/insights |
| https://github.com/PowerShell/PowerShell |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| MartinGC94:ReplaceUnusedWithDiscard | https://github.com/MartinGC94/PowerShell/tree/ReplaceUnusedWithDiscard |
| Conversation | https://github.com/PowerShell/PowerShell/pull/17620 |
| Commits1 (1) | https://github.com/PowerShell/PowerShell/pull/17620/commits |
| Checks | https://github.com/PowerShell/PowerShell/pull/17620/checks |
| Files changed | https://github.com/PowerShell/PowerShell/pull/17620/files |
| Use discard where possible | https://github.com/PowerShell/PowerShell/pull/17620#top |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| PowerShell:master | https://github.com/PowerShell/PowerShell/tree/master |
| MartinGC94:ReplaceUnusedWithDiscard | https://github.com/MartinGC94/PowerShell/tree/ReplaceUnusedWithDiscard |
|
| https://github.com/MartinGC94 |
| MartinGC94 | https://github.com/MartinGC94 |
| Jul 3, 2022 | https://github.com/PowerShell/PowerShell/pull/17620#issue-1292175111 |
| https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/discards | https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/discards |
| PR has a meaningful title | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Summarized changes | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright header | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Work in Progress | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress |
| Breaking changes | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes |
| Experimental feature(s) needed | https://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.3/Microsoft.PowerShell.Core/About/about_Experimental_Features.md |
| Documentation needed | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission |
| Make sure you've added a new test if existing tests do not effectively test the code changed | https://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting |
| PowerShell Editor Services | https://github.com/PowerShell/PowerShellEditorServices |
| PowerShell extension | https://github.com/PowerShell/vscode-powershell |
| PSScriptAnalyzer | https://github.com/PowerShell/PSScriptAnalyzer |
| EditorSyntax | https://github.com/PowerShell/EditorSyntax |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/17620 |
|
| https://github.com/MartinGC94 |
| Use discard where possible | https://github.com/PowerShell/PowerShell/pull/17620/commits/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a |
| a5f2fee | https://github.com/PowerShell/PowerShell/pull/17620/commits/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a |
| https://github.com/MartinGC94 |
| MartinGC94 | https://github.com/MartinGC94 |
| Paul Higinbotham (PaulHigin) | https://github.com/PaulHigin |
| Steve Lee (SteveL-MSFT) | https://github.com/SteveL-MSFT |
| Travis Plunk (TravisEz13) | https://github.com/TravisEz13 |
| Aditya Patwardhan (adityapatwardhan) | https://github.com/adityapatwardhan |
| Andrew (anmenaga) | https://github.com/anmenaga |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| code owners | https://github.com/PowerShell/PowerShell/blob/b5277c0fb771edca57e98b0ebb6faa1ad256f852/.github/CODEOWNERS#L33 |
| July 3, 2022 00:58 | https://github.com/PowerShell/PowerShell/pull/17620#event-6922697695 |
| https://github.com/apps/pull-request-quantifier-deprecated |
| pull-request-quantifier-deprecated | https://github.com/apps/pull-request-quantifier-deprecated |
| Jul 3, 2022 | https://github.com/PowerShell/PowerShell/pull/17620#issuecomment-1172986714 |
| https://camo.githubusercontent.com/d6034269f838f3aecba55f4a6bd96edd528d963f071fa9c31d018ad38ba4cf5b/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d5175616e746966696564266d6573736167653d4d656469756d26636f6c6f723d79656c6c6f77 |
| PullRequestQuantifier customizations | https://github.com/microsoft/PullRequestQuantifier/blob/main/docs/prquantifier-yaml.md |
| context generator | https://github.com/microsoft/PullRequestQuantifier/releases |
| see context specification | https://github.com/PowerShell/PowerShell/pull/docs/prquantifier-yaml.md |
| 👍 | https://pullrequestquantifierfeedback.azurewebsites.net/feedback?payload=eyJBdXRob3JOYW1lIjoiTWFydGluR0M5NCIsIlJlcG9zaXRvcnlMaW5rIjoiaHR0cHM6Ly9naXRodWIuY29tL1Bvd2VyU2hlbGwvUG93ZXJTaGVsbCIsIlB1bGxSZXF1ZXN0TGluayI6Imh0dHBzOi8vZ2l0aHViLmNvbS9Qb3dlclNoZWxsL1Bvd2VyU2hlbGwvcHVsbC8xNzYyMCIsIkV2ZW50VHlwZSI6IlRodW1ic1VwIn0=&anonymous=True |
| :ok_hand: | https://pullrequestquantifierfeedback.azurewebsites.net/feedback?payload=eyJBdXRob3JOYW1lIjoiTWFydGluR0M5NCIsIlJlcG9zaXRvcnlMaW5rIjoiaHR0cHM6Ly9naXRodWIuY29tL1Bvd2VyU2hlbGwvUG93ZXJTaGVsbCIsIlB1bGxSZXF1ZXN0TGluayI6Imh0dHBzOi8vZ2l0aHViLmNvbS9Qb3dlclNoZWxsL1Bvd2VyU2hlbGwvcHVsbC8xNzYyMCIsIkV2ZW50VHlwZSI6Ik5ldXRyYWwifQ==&anonymous=True |
| :thumbsdown: | https://pullrequestquantifierfeedback.azurewebsites.net/feedback?payload=eyJBdXRob3JOYW1lIjoiTWFydGluR0M5NCIsIlJlcG9zaXRvcnlMaW5rIjoiaHR0cHM6Ly9naXRodWIuY29tL1Bvd2VyU2hlbGwvUG93ZXJTaGVsbCIsIlB1bGxSZXF1ZXN0TGluayI6Imh0dHBzOi8vZ2l0aHViLmNvbS9Qb3dlclNoZWxsL1Bvd2VyU2hlbGwvcHVsbC8xNzYyMCIsIkV2ZW50VHlwZSI6IlRodW1ic0Rvd24ifQ==&anonymous=True |
| Email | MAILTO:prquantifier@microsoft.com |
| Customize PullRequestQuantifier | https://github.com/PowerShell/PowerShell/blob/master/.github/prquantifier.yaml |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/17620 |
| https://github.com/apps/pull-request-quantifier-deprecated |
| pull-request-quantifier-deprecated | https://github.com/apps/pull-request-quantifier-deprecated |
|
Medium
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3AMedium |
| Jul 3, 2022 | https://github.com/PowerShell/PowerShell/pull/17620#event-6922697736 |
| Andrew (anmenaga) | https://github.com/anmenaga |
| Jul 3, 2022 | https://github.com/PowerShell/PowerShell/pull/17620#event-6922697754 |
| https://github.com/iSazonov |
| Ilya (iSazonov) | https://github.com/iSazonov |
|
Jul 4, 2022
| https://github.com/PowerShell/PowerShell/pull/17620#pullrequestreview-1026987352 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/17620/files/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a |
| https://github.com/iSazonov |
| Ilya (iSazonov) | https://github.com/iSazonov |
|
CL-CodeCleanup
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-CodeCleanup |
| Jul 4, 2022 | https://github.com/PowerShell/PowerShell/pull/17620#event-6924602388 |
| https://github.com/PaulHigin |
| Paul Higinbotham (PaulHigin) | https://github.com/PaulHigin |
|
Jul 5, 2022
| https://github.com/PowerShell/PowerShell/pull/17620#pullrequestreview-1028970446 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/17620/files/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
|
Jul 5, 2022
| https://github.com/PowerShell/PowerShell/pull/17620#pullrequestreview-1029226031 |
|
View reviewed changes
| https://github.com/PowerShell/PowerShell/pull/17620/files/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| https://github.com/PowerShell/PowerShell/pull/17620#pullrequestreview-1029226031 |
| Learn more | https://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/17620 |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| Andrew (anmenaga) | https://github.com/anmenaga |
| Jul 5, 2022 | https://github.com/PowerShell/PowerShell/pull/17620#event-6937596296 |
| https://github.com/daxian-dbw |
| Dongbo Wang (daxian-dbw) | https://github.com/daxian-dbw |
| edac193 | https://github.com/PowerShell/PowerShell/commit/edac193cf05a540b1f5f59f23fd1eb29c2776ce1 |
| Jul 5, 2022 | https://github.com/PowerShell/PowerShell/pull/17620#event-6937604162 |
| https://github.com/MartinGC94 |
| MartinGC94 | https://github.com/MartinGC94 |
| July 5, 2022 23:10 | https://github.com/PowerShell/PowerShell/pull/17620#event-6938092655 |
| https://github.com/ghost |
| Deleted user (ghost) | https://github.com/ghost |
| Jul 18, 2022 | https://github.com/PowerShell/PowerShell/pull/17620#issuecomment-1188347689 |
| Release Notes | https://github.com/PowerShell/PowerShell/releases/tag/v7.3.0-preview.6 |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/17620 |
| https://github.com/TravisEz13 |
| Travis Plunk (TravisEz13) | https://github.com/TravisEz13 |
|
Sep 30, 2022
| https://github.com/PowerShell/PowerShell/pull/17620#ref-pullrequest-1392861285 |
|
Move ApiScan to compliance build
#18191
| https://github.com/PowerShell/PowerShell/pull/18191 |
| Thatgfsj (Thatgfsj) | https://github.com/Thatgfsj |
|
Aug 6, 2026
| https://github.com/PowerShell/PowerShell/pull/17620#ref-commit-256ce61 |
|
| https://github.com/MartinGC94 |
| Use discards for unused variables ( | https://github.com/Thatgfsj-contribs/PowerShell/commit/256ce617e7b11cb85fb5e579356d7f48ea3f3e33 |
| PowerShell#17620 | https://github.com/PowerShell/PowerShell/pull/17620 |
| ) | https://github.com/Thatgfsj-contribs/PowerShell/commit/256ce617e7b11cb85fb5e579356d7f48ea3f3e33 |
| 256ce61 | https://github.com/Thatgfsj-contribs/PowerShell/commit/256ce617e7b11cb85fb5e579356d7f48ea3f3e33 |
| https://github.co/hiddenchars |
| https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }} |
| Sign up for free | https://github.com/join?source=comment-repo |
| Sign in to comment | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F17620 |
|
| https://github.com/daxian-dbw |
|
Dongbo Wang (daxian-dbw)
| https://github.com/daxian-dbw |
|
| https://github.com/PowerShell/PowerShell/pull/17620/files/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a |
|
| https://github.com/iSazonov |
|
Ilya (iSazonov)
| https://github.com/iSazonov |
|
| https://github.com/PowerShell/PowerShell/pull/17620/files/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a |
|
| https://github.com/TravisEz13 |
|
Travis Plunk (TravisEz13)
| https://github.com/TravisEz13 |
|
| https://github.com/SteveL-MSFT |
|
Steve Lee (SteveL-MSFT)
| https://github.com/SteveL-MSFT |
|
| https://github.com/anmenaga |
|
Andrew (anmenaga)
| https://github.com/anmenaga |
|
| https://github.com/adityapatwardhan |
|
Aditya Patwardhan (adityapatwardhan)
| https://github.com/adityapatwardhan |
|
| https://github.com/PaulHigin |
|
Paul Higinbotham (PaulHigin)
| https://github.com/PaulHigin |
|
| https://github.com/PowerShell/PowerShell/pull/17620/files/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/17620 |
|
| https://github.com/daxian-dbw |
|
Dongbo Wang (daxian-dbw)
| https://github.com/daxian-dbw |
|
CL-CodeCleanup
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-CodeCleanup |
|
Medium
| https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3AMedium |
| Please reload this page | https://github.com/PowerShell/PowerShell/pull/17620 |
|
| https://github.com/MartinGC94 |
|
| https://github.com/daxian-dbw |
|
| https://github.com/PaulHigin |
|
| https://github.com/iSazonov |
|
| https://github.com/anmenaga |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |