PowerShell / PSResourceGet

PSResourceGet is the package manager for PowerShell
https://www.powershellgallery.com/packages/Microsoft.PowerShell.PSResourceGet
MIT License
483 stars 92 forks source link

Remove extra initialization of _sessionClient #1672

Closed alerickson closed 1 month ago

alerickson commented 1 month ago

PR Summary

This PR removes an unneeded initialization of the HttpClient variable _sessionClient. Since the second initialization does not have credentials set, this causes any previously set credentials to be dropped.

PR Context

Resolves #1671

PR Checklist