From 1b04cdbf903132c10a0c31e7dfc4638a5efcad37 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Tue, 24 Sep 2024 00:04:04 +0000 Subject: [PATCH] Automated dotnet-format update --- .../CrashReportV13.cs | 7 ++++--- .../CrashReportV14.cs | 11 ++++++----- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/src/BUTR.Site.NexusMods.Server.CrashReport.v13/CrashReportV13.cs b/src/BUTR.Site.NexusMods.Server.CrashReport.v13/CrashReportV13.cs index 093137e5..b27c081f 100644 --- a/src/BUTR.Site.NexusMods.Server.CrashReport.v13/CrashReportV13.cs +++ b/src/BUTR.Site.NexusMods.Server.CrashReport.v13/CrashReportV13.cs @@ -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; @@ -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!; @@ -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, diff --git a/src/BUTR.Site.NexusMods.Server.CrashReport.v14/CrashReportV14.cs b/src/BUTR.Site.NexusMods.Server.CrashReport.v14/CrashReportV14.cs index c9a0bf98..1d139931 100644 --- a/src/BUTR.Site.NexusMods.Server.CrashReport.v14/CrashReportV14.cs +++ b/src/BUTR.Site.NexusMods.Server.CrashReport.v14/CrashReportV14.cs @@ -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; @@ -59,7 +60,7 @@ 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!; @@ -67,7 +68,7 @@ public static bool TryFromHtml( crashReportToModuleMetadataEntities = null!; return false; } - + return TryFromModel(unitOfWrite, tenant, fileId, url, date, report, out crashReportEntity, out crashReportToMetadataEntity, out crashReportToModuleMetadataEntities); } @@ -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!; @@ -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,