Skip to content

Commit 93f4053

Browse files
New-ADOWorkItem: Minor fix when -QueryPath is not passed
1 parent 6271a92 commit 93f4053

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

New-ADOWorkItem.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@
230230
$queryPathParts = @($QueryPath -split '/')
231231
$sharedQueries = $null
232232
foreach ($qp in $queryPathParts) {
233+
if (-not $qp) { continue }
233234
if (-not ($qp -as [guid])) {
234235
$sharedQueries = Get-ADOWorkItem -SharedQuery @orgAndProject -Depth 2
235236
break

0 commit comments

Comments
 (0)