Skip to content

Commit 6a81152

Browse files
committed
wip!
1 parent ded1e9e commit 6a81152

1 file changed

Lines changed: 8 additions & 11 deletions

File tree

src/Microsoft.PowerShell.Commands.Utility/commands/utility/WebCmdlet/Common/WebRequestPSCmdlet.Common.cs

Lines changed: 8 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -700,20 +700,17 @@ protected override void ProcessRecord()
700700
_cancelToken?.Dispose();
701701
_cancelToken = null;
702702
}
703+
}
703704

704-
if (_followRelLink)
705-
{
706-
if (!_relationLink.TryGetValue("next", out string value))
707-
{
708-
return;
709-
}
710-
711-
uri = new Uri(value);
712-
followedRelLink++;
713-
}
705+
if (!_followRelLink || !_relationLink.TryGetValue("next", out string value))
706+
{
707+
break;
714708
}
709+
710+
uri = new Uri(value);
711+
715712
}
716-
while (_followRelLink && (followedRelLink < _maximumFollowRelLink));
713+
while (++followedRelLink < _maximumFollowRelLink);
717714
}
718715
catch (CryptographicException ex)
719716
{

0 commit comments

Comments
 (0)