Skip to content

Commit

Permalink
Automated dotnet-format update
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions[bot] committed Sep 24, 2024
1 parent 2be2df9 commit 1b04cdb
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@
using BUTR.Site.NexusMods.Server.Models.Database;
using BUTR.Site.NexusMods.Server.Repositories;

using Microsoft.Extensions.Logging;

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text.Json;
using Microsoft.Extensions.Logging;

namespace BUTR.Site.NexusMods.Server.CrashReport.v13;

Expand Down Expand Up @@ -67,7 +68,7 @@ public static bool TryFromJson(
logger.LogError(e, "Failed to parse JSON crash report. FileId: {FileId}, Url: {Url}", fileId, url);
report = null;
}

if (report is null)
{
crashReportEntity = null!;
Expand All @@ -78,7 +79,7 @@ public static bool TryFromJson(

return TryFromModel(unitOfWrite, tenant, fileId, url, date, report, out crashReportEntity, out crashReportToMetadataEntity, out crashReportToModuleMetadataEntities);
}

public static bool TryFromModel(
IUnitOfWrite unitOfWrite,
TenantId tenant,
Expand Down
11 changes: 6 additions & 5 deletions src/BUTR.Site.NexusMods.Server.CrashReport.v14/CrashReportV14.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,12 +5,13 @@
using BUTR.Site.NexusMods.Server.Models.Database;
using BUTR.Site.NexusMods.Server.Repositories;

using Microsoft.Extensions.Logging;

using System;
using System.Collections.Generic;
using System.Diagnostics.CodeAnalysis;
using System.Linq;
using System.Text.Json;
using Microsoft.Extensions.Logging;

namespace BUTR.Site.NexusMods.Server.CrashReport.v14;

Expand Down Expand Up @@ -59,15 +60,15 @@ public static bool TryFromHtml(
logger.LogError(e, "Failed to parse HTML crash report. FileId: {FileId}, Url: {Url}", fileId, url);
report = null;
}

if (report is null)
{
crashReportEntity = null!;
crashReportToMetadataEntity = null!;
crashReportToModuleMetadataEntities = null!;
return false;
}

return TryFromModel(unitOfWrite, tenant, fileId, url, date, report, out crashReportEntity, out crashReportToMetadataEntity, out crashReportToModuleMetadataEntities);
}

Expand Down Expand Up @@ -103,7 +104,7 @@ public static bool TryFromJson(
logger.LogError(e, "Failed to parse JSON crash report. FileId: {FileId}, Url: {Url}", fileId, url);
report = null;
}

if (report is null)
{
crashReportEntity = null!;
Expand All @@ -114,7 +115,7 @@ public static bool TryFromJson(

return TryFromModel(unitOfWrite, tenant, fileId, url, date, report, out crashReportEntity, out crashReportToMetadataEntity, out crashReportToModuleMetadataEntities);
}

private static bool TryFromModel(
IUnitOfWrite unitOfWrite,
TenantId tenant,
Expand Down

0 comments on commit 1b04cdb

Please sign in to comment.