Skip to content

Commit

Permalink
adjust code to use logic and
Browse files Browse the repository at this point in the history
  • Loading branch information
LucasYao93 committed Apr 26, 2021
1 parent 4dde0b9 commit 9f58e47
Showing 1 changed file with 3 additions and 6 deletions.
9 changes: 3 additions & 6 deletions tools/GenerateExternalContributors.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -96,13 +96,10 @@ for ($PR = 0; $PR -lt $sortPRs.Length; $PR++) {
continue
}

if ([System.String]::IsNullOrEmpty($account))
# Skip if commit author exists in skipContributors list.
if ([System.String]::IsNullOrEmpty($account) -and $skipContributors.Contains($name))
{
# Skip if commit author exists in skipContributors list.
if ($skipContributors.Contains($name))
{
continue
}
continue
}

# Check whether the contributor belongs to the Azure organization.
Expand Down

0 comments on commit 9f58e47

Please sign in to comment.