Skip to content

Commit

Permalink
indent fix
Browse files Browse the repository at this point in the history
  • Loading branch information
MariusStorhaug committed Aug 11, 2024
1 parent 57cfb4a commit b247fc7
Showing 1 changed file with 18 additions and 18 deletions.
36 changes: 18 additions & 18 deletions src/public/API/Invoke-GitHubAPI.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -102,26 +102,26 @@
}

try {
$APICall = @{
Uri = $URI
Method = $Method
Headers = $Headers
Authentication = 'Bearer'
Token = $AccessToken
ContentType = $ContentType
FollowRelLink = $FollowRelLink
StatusCodeVariable = 'APICallStatusCode'
ResponseHeadersVariable = 'APICallResponseHeaders'
InFile = $UploadFilePath
OutFile = $DownloadFilePath
}
$APICall = @{
Uri = $URI
Method = $Method
Headers = $Headers
Authentication = 'Bearer'
Token = $AccessToken
ContentType = $ContentType
FollowRelLink = $FollowRelLink
StatusCodeVariable = 'APICallStatusCode'
ResponseHeadersVariable = 'APICallResponseHeaders'
InFile = $UploadFilePath
OutFile = $DownloadFilePath
}

#If PSversion is higher than 7.1 use HttpVersion
if ($PSVersionTable.PSVersion -ge [version]'7.3') {
$APICall['HttpVersion'] = $HttpVersion
}
#If PSversion is higher than 7.1 use HttpVersion
if ($PSVersionTable.PSVersion -ge [version]'7.3') {
$APICall['HttpVersion'] = $HttpVersion
}

$APICall | Remove-HashtableEntry -NullOrEmptyValues
$APICall | Remove-HashtableEntry -NullOrEmptyValues
} catch {
Write-Error $_
exit 1
Expand Down

0 comments on commit b247fc7

Please sign in to comment.