Francois Gouget : testbot/web: Rename and fix a loop variable declaration.
Alexandre Julliard
julliard at winehq.org
Wed Feb 23 15:58:45 CST 2022
Module: tools
Branch: master
Commit: da44a1907e8c1e03742ce5e064d252d1bf480861
URL: https://source.winehq.org/git/tools.git/?a=commit;h=da44a1907e8c1e03742ce5e064d252d1bf480861
Author: Francois Gouget <fgouget at codeweavers.com>
Date: Wed Feb 23 15:54:59 2022 +0100
testbot/web: Rename and fix a loop variable declaration.
Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
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 8d4270a..eef7a17 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";
}
More information about the wine-cvs
mailing list