Skip to content

Commit

Permalink
Fix for PowerShell 5 support (remove ?? operator)
Browse files Browse the repository at this point in the history
  • Loading branch information
weyCC81 committed Nov 14, 2024
1 parent b34f9b7 commit cbc359f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion powershell/internal/ConvertTo-MtMaesterResults.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ function ConvertTo-MtMaesterResult {
$mtTestInfo = [PSCustomObject]@{
Name = $name
HelpUrl = $helpUrl
Tag = ($test.Block.Tag + $test.Tag | Select-Object -Unique) ?? @()
Tag = ($test.Block.Tag + $test.Tag | Select-Object -Unique)
Result = $test.Result
ScriptBlock = $test.ScriptBlock.ToString()
ScriptBlockFile = $test.ScriptBlock.File
Expand Down

0 comments on commit cbc359f

Please sign in to comment.