From a41ecf3f6b0609abdb902d3985e215f73cb75b71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebastian=20Sch=C3=BCtze?= Date: Sun, 1 Aug 2021 22:29:03 +0200 Subject: [PATCH] Fixing wrong usage for operator syntax '&&' --- Source/Public/Get-VSTeamWiql.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Source/Public/Get-VSTeamWiql.ps1 b/Source/Public/Get-VSTeamWiql.ps1 index 43ac65b3..d5591a2f 100644 --- a/Source/Public/Get-VSTeamWiql.ps1 +++ b/Source/Public/Get-VSTeamWiql.ps1 @@ -50,7 +50,7 @@ function Get-VSTeamWiql { $resp = _callAPI @params #expand only when at least one workitem has been found - if ($Expand && $resp.workItems.Count -gt 0) { + if ($Expand -and $resp.workItems.Count -gt 0) { # Handle queries for work item links also allow for the tests not Setting the query result type. if ($resp.psobject.Properties['queryResultType'] -and $resp.queryResultType -eq 'workItemLink') { Add-Member -InputObject $resp -MemberType NoteProperty -Name Workitems -Value @()