Fixed the AuthorName/AuthorEmail variable check for Set-GitHubContent (#295)
Fixed the variable check for Set-GitHubContent. Resolves #285.
This commit is contained in:
Родитель
c92d8a64eb
Коммит
ec7950c02c
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче