We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 71149e1 commit ec8eda1Copy full SHA for ec8eda1
src/Private/Helpers.ps1
@@ -1767,17 +1767,18 @@ function Test-PodePath {
1767
}
1768
1769
if ($statusCode -eq 200) {
1770
- if ($ReturnItem) {
+ if ($ReturnItem.IsPresent) {
1771
return $item
1772
1773
return $true
1774
1775
1776
1777
- # if we failed to get the file, report back the status code and/or return true/false
1778
- if (!$NoStatus.IsPresent) {
1779
- Set-PodeResponseStatus -Code $statusCode
1780
- }
+ # if we failed to get the file, report back the status code and/or return true/false
+ if (!$NoStatus.IsPresent) {
+ Set-PodeResponseStatus -Code $statusCode
+ }
+
1781
1782
return $null
1783
1784
return $false
0 commit comments