Commit 6ffd9485f5c9c0b2d2aea9f904dff08e7088010a

Authored by Joe Perches
Committed by Linus Torvalds
1 parent 63ab52db5b

scripts/get_maintainer.pl: use correct indentation

Fix an overly indented block.

Signed-off-by: Joe Perches <joe@perches.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

Showing 1 changed file with 15 additions and 15 deletions Side-by-side Diff

scripts/get_maintainer.pl
... ... @@ -420,23 +420,23 @@
420 420  
421 421 foreach my $line (sort {$hash{$b} <=> $hash{$a}} keys %hash) {
422 422 add_categories($line);
423   - if ($sections) {
424   - my $i;
425   - my $start = find_starting_index($line);
426   - my $end = find_ending_index($line);
427   - for ($i = $start; $i < $end; $i++) {
428   - my $line = $typevalue[$i];
429   - if ($line =~ /^[FX]:/) { ##Restore file patterns
430   - $line =~ s/([^\\])\.([^\*])/$1\?$2/g;
431   - $line =~ s/([^\\])\.$/$1\?/g; ##Convert . back to ?
432   - $line =~ s/\\\./\./g; ##Convert \. to .
433   - $line =~ s/\.\*/\*/g; ##Convert .* to *
434   - }
435   - $line =~ s/^([A-Z]):/$1:\t/g;
436   - print("$line\n");
  423 + if ($sections) {
  424 + my $i;
  425 + my $start = find_starting_index($line);
  426 + my $end = find_ending_index($line);
  427 + for ($i = $start; $i < $end; $i++) {
  428 + my $line = $typevalue[$i];
  429 + if ($line =~ /^[FX]:/) { ##Restore file patterns
  430 + $line =~ s/([^\\])\.([^\*])/$1\?$2/g;
  431 + $line =~ s/([^\\])\.$/$1\?/g; ##Convert . back to ?
  432 + $line =~ s/\\\./\./g; ##Convert \. to .
  433 + $line =~ s/\.\*/\*/g; ##Convert .* to *
437 434 }
438   - print("\n");
  435 + $line =~ s/^([A-Z]):/$1:\t/g;
  436 + print("$line\n");
439 437 }
  438 + print("\n");
  439 + }
440 440 }
441 441  
442 442 if ($email && $email_git) {