Skip to content

Commit

Permalink
Update Get-YouTubeChannel.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmueller authored Jul 3, 2023
1 parent 1cefa67 commit e3f0006
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions functions/Get-YouTubeChannel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,6 @@ function Get-YouTubeChannel {
$Result = Invoke-RestMethod -Uri $Uri -Method Get -Headers (Get-AccessToken)
$Result.items | ForEach-Object -Process { $PSItem.PSTypeNames.Add('YouTube.Channel') }

if ($Raw) {
return $Result
}else{
$Result.items
}

}
if ($Raw) { return $Result }
$Result.items
}

0 comments on commit e3f0006

Please sign in to comment.