Skip to content

Commit ec7950c

Browse files
authored
Fixed the AuthorName/AuthorEmail variable check for Set-GitHubContent (#295)
Fixed the variable check for Set-GitHubContent. Resolves #285.
1 parent c92d8a6 commit ec7950c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GitHubContents.ps1

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,8 @@ filter Set-GitHubContent
392392
if ($PSBoundParameters.ContainsKey('AuthorName') -or
393393
$PSBoundParameters.ContainsKey('AuthorEmail'))
394394
{
395-
if (![System.String]::IsNullOrEmpty($CommitterName) -and
396-
![System.String]::IsNullOrEmpty($CommitterEmail))
395+
if (![System.String]::IsNullOrEmpty($AuthorName) -and
396+
![System.String]::IsNullOrEmpty($AuthorEmail))
397397
{
398398
$hashBody['author'] = @{
399399
name = $AuthorName

0 commit comments

Comments
 (0)