Skip to content

Commit

Permalink
Update Find-YouTubeChannel.ps1
Browse files Browse the repository at this point in the history
Validate next page token is not empty
  • Loading branch information
pcgeek86 authored Aug 1, 2023
1 parent 48084de commit 4e612d0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion functions/Find-YouTubeChannel.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ function Find-YouTubeChannel {
param (
[Parameter(Mandatory = $true)]
[string] $Query,
[ValidateNotNullOrEmpty()]
[string] $PageToken,
[switch] $Raw
)
Expand All @@ -21,4 +22,4 @@ function Find-YouTubeChannel {

$Result.Items | ForEach-Object -Process { $PSItem.PSTypeNames.Add('YouTube.Search.ChannelResult') }
$Result.Items
}
}

0 comments on commit 4e612d0

Please sign in to comment.