Skip to content

Commit

Permalink
Update DefaultLogAnalyzer.cs
Browse files Browse the repository at this point in the history
  • Loading branch information
laolarou726 committed Nov 17, 2023
1 parent aeb4447 commit b81d357
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,8 +80,11 @@ public IEnumerable<IAnalysisReport> GenerateReport()
logs[logFileType].Add(lines);
}

if (logs.Count > 0 || logs.All(p => p.Value.Count == 0))
if (logs.Count == 0 || logs.All(p => p.Value.Count == 0))
{
yield return new AnalysisReport.AnalysisReport(CrashCauses.LogFileNotFound);
yield break;
}

var hasLogAnalysisResult = false;
foreach (var report in AnalysisLogs(logs))
Expand Down

0 comments on commit b81d357

Please sign in to comment.