diff --git a/GitHubContents.ps1 b/GitHubContents.ps1 index 7d1bcd40..d77c21aa 100644 --- a/GitHubContents.ps1 +++ b/GitHubContents.ps1 @@ -392,8 +392,8 @@ filter Set-GitHubContent if ($PSBoundParameters.ContainsKey('AuthorName') -or $PSBoundParameters.ContainsKey('AuthorEmail')) { - if (![System.String]::IsNullOrEmpty($CommitterName) -and - ![System.String]::IsNullOrEmpty($CommitterEmail)) + if (![System.String]::IsNullOrEmpty($AuthorName) -and + ![System.String]::IsNullOrEmpty($AuthorEmail)) { $hashBody['author'] = @{ name = $AuthorName