Skip to content

Commit

Permalink
🩹 [Refactor]: Remove obsolete Hashtable conversion functions and upda…
Browse files Browse the repository at this point in the history
…te API call to use pscustomobject
  • Loading branch information
MariusStorhaug committed Feb 19, 2025
1 parent ab7756a commit b42f77d
Show file tree
Hide file tree
Showing 5 changed files with 2 additions and 345 deletions.

This file was deleted.

80 changes: 0 additions & 80 deletions src/functions/private/Utilities/Hashtable/ConvertTo-HashTable.ps1

This file was deleted.

104 changes: 0 additions & 104 deletions src/functions/private/Utilities/Hashtable/Join-Object.ps1

This file was deleted.

103 changes: 0 additions & 103 deletions src/functions/private/Utilities/Hashtable/Remove-HashtableEntry.ps1

This file was deleted.

3 changes: 2 additions & 1 deletion src/functions/public/API/Invoke-GitHubAPI.ps1
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
#Requires -Modules @{ ModuleName = 'Uri'; RequiredVersion = '1.1.0' }
#Requires -Modules @{ ModuleName = 'Hashtable'; RequiredVersion = '1.0.0' }

filter Invoke-GitHubAPI {
<#
Expand Down Expand Up @@ -162,7 +163,7 @@ filter Invoke-GitHubAPI {
try {
Write-Debug '----------------------------------'
Write-Debug 'Request:'
$APICall | ConvertFrom-HashTable | Format-List | Out-String -Stream | ForEach-Object { Write-Debug $_ }
[pscustomobject]$APICall | Format-List | Out-String -Stream | ForEach-Object { Write-Debug $_ }
Write-Debug '----------------------------------'
do {
$response = Invoke-WebRequest @APICall
Expand Down

0 comments on commit b42f77d

Please sign in to comment.