René's URL Explorer Experiment


Title: Use discard where possible by MartinGC94 · Pull Request #17620 · PowerShell/PowerShell · GitHub

Open Graph Title: Use discard where possible by MartinGC94 · Pull Request #17620 · PowerShell/PowerShell

X Title: Use discard where possible by MartinGC94 · Pull Request #17620 · PowerShell/PowerShell

Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Open Graph Description: 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...

X Description: 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 searche...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/17620

X: @github

direct link

Domain: github.com

react-profiling0
react-import-mapreact,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-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:f86771bc-f566-0f26-5f48-aa4690eb0475
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id972A:99533:460DE1:65A8F0:6AFD83CB
html-safe-nonce8fbae362f89071c35874c2fedeb840dcca7b90763cd11239cdddfbc07d0f8a36
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NzJBOjk5NTMzOjQ2MERFMTo2NUE4RjA6NkFGRDgzQ0IiLCJ2aXNpdG9yX2lkIjoiMTE5NjUwMDQzNTAyMDM4MzE3OSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac39f645804d8acefb37b731d88765483303a12ec5854ab305b5aee211f01fa373
hovercard-subject-tagpull_request:985618280
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/17620/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/e8a5e0d06381b9f406f49adfca7e486f08c5cc0b66843aba932ee97eea083bde/PowerShell/PowerShell/pull/17620
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/e8a5e0d06381b9f406f49adfca7e486f08c5cc0b66843aba932ee97eea083bde/PowerShell/PowerShell/pull/17620
og:image:altPR 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:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMartinGC94
hostnamegithub.com
expected-hostnamegithub.com
None42d4967e3c8afca51ccac31f419a705af777226a95f025ea73387d87a306b326
turbo-cache-controlno-cache
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release2329ceed0bc2c7b7c3b9f5f2db6abfc7b6fc3a50
ui-targetfull
theme-color#1e2327
color-schemelight dark
react-app-namepull-requests

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/17620#start-of-content
https://github.com/
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F17620
GitHubRepository hosting, code review, and collaborationhttps://github.com/platform
CopilotAI coding agent for tasks, projects, and automated workhttps://github.com/features/copilot
ActionsCI/CD and automationhttps://github.com/features/actions
Code QualityQuality analysis, fixes, and enforcementhttps://github.com/features/code-quality
CodespacesCloud development environmentshttps://github.com/features/codespaces
Code SecurityVulnerability detection and remediationhttps://github.com/security/advanced-security/code-security
Secret ProtectionSecret scanning and leak preventionhttps://github.com/security/advanced-security/secret-protection
All Featureshttps://github.com/features
Documentationhttps://docs.github.com/en
Traininghttps://learn.github.com/skills
Certificationshttps://learn.github.com/credentials
Build with Copilothttps://github.com/features/ai
Customize Copilothttps://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview
Integrationshttps://github.com/marketplace
Trending reposhttps://github.com/trending
GitHub Sponsorshttps://github.com/open-source/sponsors
Developer articleshttps://github.com/resources/articles
ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place.https://github.blog/changelog/
Enterpriseshttps://github.com/enterprise
Teamhttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
See all industrieshttps://github.com/solutions/industry
Why GitHubhttps://github.com/why-github
Customer Storieshttps://github.com/customer-stories
Business insightshttps://github.com/solutions/executive-insights
Trust Centerhttps://github.com/trust-center
GitHub Advanced SecurityEnterprise-grade code securityhttps://github.com/security/advanced-security
Copilot for businessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Documentationhttps://docs.github.com/en
Resource centerhttps://github.com/resources
Bloghttps://github.blog/
Events & webinarshttps://github.com/resources/events
Community Forumhttps://github.com/orgs/community/discussions
Customer Storieshttps://github.com/customer-stories
Integrationshttps://github.com/marketplace
Customer supporthttps://help.github.com/
Traininghttps://learn.github.com/skills
GitHub Statushttps://www.githubstatus.com/
Abouthttps://github.com/about
Partnershttps://github.com/partners
Changeloghttps://github.blog/changelog/
GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub.https://githubuniverse.com/
Pricinghttps://github.com/pricing
Sign inhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F17620
Sign uphttps://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
Reloadhttps://github.com/PowerShell/PowerShell/pull/17620
Reloadhttps://github.com/PowerShell/PowerShell/pull/17620
Reloadhttps://github.com/PowerShell/PowerShell/pull/17620
PowerShellhttps://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Codehttps://github.com/PowerShell/PowerShell
Issues1.3k (1.3k)https://github.com/PowerShell/PowerShell/issues
Pull requests366 (366)https://github.com/PowerShell/PowerShell/pulls
Discussionshttps://github.com/PowerShell/PowerShell/discussions
Actionshttps://github.com/PowerShell/PowerShell/actions
Projectshttps://github.com/PowerShell/PowerShell/projects
Security and quality3 (3)https://github.com/PowerShell/PowerShell/security
Insightshttps://github.com/PowerShell/PowerShell/insights
https://github.com/PowerShell/PowerShell
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
MartinGC94:ReplaceUnusedWithDiscardhttps://github.com/MartinGC94/PowerShell/tree/ReplaceUnusedWithDiscard
Conversationhttps://github.com/PowerShell/PowerShell/pull/17620
Commits1 (1)https://github.com/PowerShell/PowerShell/pull/17620/commits
Checkshttps://github.com/PowerShell/PowerShell/pull/17620/checks
Files changedhttps://github.com/PowerShell/PowerShell/pull/17620/files
Use discard where possiblehttps://github.com/PowerShell/PowerShell/pull/17620#top
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
MartinGC94:ReplaceUnusedWithDiscardhttps://github.com/MartinGC94/PowerShell/tree/ReplaceUnusedWithDiscard
https://github.com/MartinGC94
MartinGC94https://github.com/MartinGC94
Jul 3, 2022https://github.com/PowerShell/PowerShell/pull/17620#issue-1292175111
https://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/discardshttps://docs.microsoft.com/en-us/dotnet/csharp/fundamentals/functional/discards
PR has a meaningful titlehttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Summarized changeshttps://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 headerhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Work in Progresshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress
Breaking changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes
Experimental feature(s) neededhttps://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.3/Microsoft.PowerShell.Core/About/about_Experimental_Features.md
Documentation neededhttps://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 changedhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting
PowerShell Editor Serviceshttps://github.com/PowerShell/PowerShellEditorServices
PowerShell extensionhttps://github.com/PowerShell/vscode-powershell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
EditorSyntaxhttps://github.com/PowerShell/EditorSyntax
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17620
https://github.com/MartinGC94
Use discard where possiblehttps://github.com/PowerShell/PowerShell/pull/17620/commits/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a
a5f2feehttps://github.com/PowerShell/PowerShell/pull/17620/commits/a5f2feec43da0f77f5c51e6dd554a41ac5f35f7a
https://github.com/MartinGC94
MartinGC94https://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 ownershttps://github.com/PowerShell/PowerShell/blob/b5277c0fb771edca57e98b0ebb6faa1ad256f852/.github/CODEOWNERS#L33
July 3, 2022 00:58https://github.com/PowerShell/PowerShell/pull/17620#event-6922697695
https://github.com/apps/pull-request-quantifier-deprecated
pull-request-quantifier-deprecatedhttps://github.com/apps/pull-request-quantifier-deprecated
Jul 3, 2022https://github.com/PowerShell/PowerShell/pull/17620#issuecomment-1172986714
https://camo.githubusercontent.com/d6034269f838f3aecba55f4a6bd96edd528d963f071fa9c31d018ad38ba4cf5b/68747470733a2f2f696d672e736869656c64732e696f2f7374617469632f76313f6c6162656c3d5175616e746966696564266d6573736167653d4d656469756d26636f6c6f723d79656c6c6f77
PullRequestQuantifier customizationshttps://github.com/microsoft/PullRequestQuantifier/blob/main/docs/prquantifier-yaml.md
context generatorhttps://github.com/microsoft/PullRequestQuantifier/releases
see context specificationhttps://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
EmailMAILTO:prquantifier@microsoft.com
Customize PullRequestQuantifierhttps://github.com/PowerShell/PowerShell/blob/master/.github/prquantifier.yaml
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/17620
https://github.com/apps/pull-request-quantifier-deprecated
pull-request-quantifier-deprecatedhttps://github.com/apps/pull-request-quantifier-deprecated
Medium https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3AMedium
Jul 3, 2022https://github.com/PowerShell/PowerShell/pull/17620#event-6922697736
Andrew (anmenaga)https://github.com/anmenaga
Jul 3, 2022https://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, 2022https://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 morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://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, 2022https://github.com/PowerShell/PowerShell/pull/17620#event-6937596296
https://github.com/daxian-dbw
Dongbo Wang (daxian-dbw)https://github.com/daxian-dbw
edac193https://github.com/PowerShell/PowerShell/commit/edac193cf05a540b1f5f59f23fd1eb29c2776ce1
Jul 5, 2022https://github.com/PowerShell/PowerShell/pull/17620#event-6937604162
https://github.com/MartinGC94
MartinGC94https://github.com/MartinGC94
July 5, 2022 23:10https://github.com/PowerShell/PowerShell/pull/17620#event-6938092655
https://github.com/ghost
Deleted user (ghost)https://github.com/ghost
Jul 18, 2022https://github.com/PowerShell/PowerShell/pull/17620#issuecomment-1188347689
Release Noteshttps://github.com/PowerShell/PowerShell/releases/tag/v7.3.0-preview.6
Please reload this pagehttps://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#17620https://github.com/PowerShell/PowerShell/pull/17620
)https://github.com/Thatgfsj-contribs/PowerShell/commit/256ce617e7b11cb85fb5e579356d7f48ea3f3e33
256ce61https://github.com/Thatgfsj-contribs/PowerShell/commit/256ce617e7b11cb85fb5e579356d7f48ea3f3e33
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://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 pagehttps://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 pagehttps://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
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.