Skip to content

Commit

Permalink
Fix unused variable error
Browse files Browse the repository at this point in the history
  • Loading branch information
jazuntee committed Sep 14, 2022
1 parent 30d1517 commit 67ed515
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Invoke-MsIdAzureAdSamlRequest.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -26,11 +26,11 @@ function Invoke-MsIdAzureAdSamlRequest {

process {
foreach ($_SamlRequest in $SamlRequest) {
if ($Token -is [string]) {
if ($_SamlRequest -is [string]) {
$xmlSamlRequest = ConvertFrom-SamlMessage $_SamlRequest
}
else {
$xmlSamlRequest = $Token
$xmlSamlRequest = $_SamlRequest
}
$EncodedSamlRequest = $xmlSamlRequest.OuterXml | Compress-Data | ConvertTo-Base64String

Expand Down

0 comments on commit 67ed515

Please sign in to comment.