Skip to content

Commit

Permalink
Merge pull request #238 from microsoft/main
Browse files Browse the repository at this point in the history
Fork Sync: Update from parent repository
  • Loading branch information
AdamL-Microsoft authored Mar 7, 2023
2 parents 0b43ccd + e5dc787 commit 4bca252
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/ApiService/ApiService/onefuzzlib/Reports.cs
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ public Reports(ILogTracer log, IContainers containers) {

public async Async.Task<IReport?> GetReportOrRegression(Container container, string fileName, bool expectReports = false, params string[] args) {
var filePath = string.Join("/", new[] { container.String, fileName });
if (!fileName.EndsWith(".json", StringComparison.Ordinal)) {
if (!fileName.EndsWith(".json", StringComparison.Ordinal) || fileName.Contains("source-coverage", StringComparison.InvariantCultureIgnoreCase)) {
if (expectReports) {
_log.Error($"get_report invalid extension: {filePath:Tag:FilePath}");
_log.Error($"get_report invalid extension or filename: {filePath:Tag:FilePath}");
}
return null;
}
Expand Down

0 comments on commit 4bca252

Please sign in to comment.