mirror of
https://github.com/xemu-project/xemu.git
synced 2024-11-27 05:20:50 +00:00
get_maintainer.pl: move git loop under "if ($email) {"
All checks in the loop are guarded by that condition, and there is a handy "if" just below. Simplify the code. Reviewed-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
This commit is contained in:
parent
107684c05d
commit
8ad2c0f0f8
@ -651,18 +651,17 @@ sub get_maintainers {
|
||||
$email->[0] = deduplicate_email($email->[0]);
|
||||
}
|
||||
|
||||
foreach my $file (@files) {
|
||||
if ($email &&
|
||||
($email_git || ($email_git_fallback &&
|
||||
!$exact_pattern_match_hash{$file}))) {
|
||||
vcs_file_signoffs($file);
|
||||
}
|
||||
if ($email && $email_git_blame) {
|
||||
vcs_file_blame($file);
|
||||
}
|
||||
}
|
||||
|
||||
if ($email) {
|
||||
foreach my $file (@files) {
|
||||
if ($email_git || ($email_git_fallback &&
|
||||
!$exact_pattern_match_hash{$file})) {
|
||||
vcs_file_signoffs($file);
|
||||
}
|
||||
if ($email_git_blame) {
|
||||
vcs_file_blame($file);
|
||||
}
|
||||
}
|
||||
|
||||
foreach my $chief (@penguin_chief) {
|
||||
if ($chief =~ m/^(.*):(.*)/) {
|
||||
my $email_address;
|
||||
|
Loading…
Reference in New Issue
Block a user