[PATCH] testbot/UpdateTaskLogs: Remove a redundant check in ProcessLatestReports().

Francois Gouget fgouget at codeweavers.com
Fri Jan 31 06:15:22 CST 2020


Signed-off-by: Francois Gouget <fgouget at codeweavers.com>
---
 testbot/bin/UpdateTaskLogs | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testbot/bin/UpdateTaskLogs b/testbot/bin/UpdateTaskLogs
index bbcab7d87c..887061dab2 100755
--- a/testbot/bin/UpdateTaskLogs
+++ b/testbot/bin/UpdateTaskLogs
@@ -405,11 +405,11 @@ sub ProcessLatestReports()
       $Rc += Delete($LatestReportPath);
       $Rc += Delete("$LatestReportPath.err");
     }
-    elsif (!-f "$LatestReportPath")
+    elsif (!-f $LatestReportPath)
     {
       $Rc += Delete("$LatestReportPath.err", "orphaned");
     }
-    elsif (!$OptDelete and !-f "$LatestReportPath.err")
+    elsif (!-f "$LatestReportPath.err")
     {
       # Build the missing .err file
       my $ErrMessage = BuildErrFile("$DataDir/latest", $RefReportName, 1, 0);
-- 
2.20.1



More information about the wine-devel mailing list