From 833207902e97d4d2777d03db654d349c6276fe05 Mon Sep 17 00:00:00 2001 From: Marius Storhaug Date: Fri, 6 Dec 2024 20:40:18 +0100 Subject: [PATCH] Test --- .../private/Auth/Context/Resolve-GitHubContext.ps1 | 10 +++------- 1 file changed, 3 insertions(+), 7 deletions(-) diff --git a/src/functions/private/Auth/Context/Resolve-GitHubContext.ps1 b/src/functions/private/Auth/Context/Resolve-GitHubContext.ps1 index 560abf23..71684634 100644 --- a/src/functions/private/Auth/Context/Resolve-GitHubContext.ps1 +++ b/src/functions/private/Auth/Context/Resolve-GitHubContext.ps1 @@ -32,15 +32,11 @@ begin { $commandName = $MyInvocation.MyCommand.Name Write-Verbose "[$commandName] - Start" - Write-Verbose "Context:" - Write-Verbose ($Context | Out-String) + Write-Verbose 'Context:' + $Context | Out-String -Stream | ForEach-Object { Write-Verbose $_ } } process { - if ([string]::IsNullOrEmpty($Context)) { - throw "No contexts has been specified. Please provide a context or log in using 'Connect-GitHub'." - } - if ($Context -is [string]) { $contextName = $Context Write-Debug "Getting context: [$contextName]" @@ -66,7 +62,7 @@ } end { - Write-Output $Context Write-Verbose "[$commandName] - End" + Write-Output $Context } }