[tools] testbo/web: Rename and fix a loop variable declaration.
Francois Gouget
fgouget at codeweavers.com
Wed Feb 23 08:54:59 CST 2022
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
testbot/web/JobDetails.pl | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/testbot/web/JobDetails.pl b/testbot/web/JobDetails.pl
index 8d4270af1e..eef7a17838 100644
--- a/testbot/web/JobDetails.pl
+++ b/testbot/web/JobDetails.pl
@@ -423,8 +423,7 @@ sub GenerateFullLog($$$$)
next if ($Group->{LineNo});
print "<div class='LogDllName'>$GroupName</div>\n";
- my $i = 0;
- for my $i (0..@{$Group->{Errors}} - 1)
+ for my $ErrIndex (0..@{$Group->{Errors}} - 1)
{
if ($IsEmpty)
{
@@ -432,8 +431,8 @@ sub GenerateFullLog($$$$)
$IsEmpty = 0;
}
- my $Line = $Group->{Errors}->[$i];
- my $Category = $Group->{IsNew}->[$i] ? "new" : "error";
+ my $Line = $Group->{Errors}->[$ErrIndex];
+ my $Category = $Group->{IsNew}->[$ErrIndex] ? "new" : "error";
my $Html = $self->escapeHTML($Line);
print "<span class='log-$Category'>$Html</span>\n";
}
--
2.30.2
More information about the wine-devel
mailing list