Skip to content

Commit

Permalink
Fixing wrong usage for operator syntax '&&'
Browse files Browse the repository at this point in the history
  • Loading branch information
SebastianSchuetze authored Aug 1, 2021
2 parents 5450202 + a41ecf3 commit d5bfc1c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/Public/Get-VSTeamWiql.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -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 @()
Expand Down

0 comments on commit d5bfc1c

Please sign in to comment.