From 4ec50f8a9d863a84f9b05bc25e21fd77cf016514 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Sat, 17 Feb 2024 00:03:25 +0000 Subject: [PATCH] Automated dotnet-format update --- .../Utils/Csv/Utils/ExportOutputFormatter.cs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/BUTR.Site.NexusMods.Server/Utils/Csv/Utils/ExportOutputFormatter.cs b/src/BUTR.Site.NexusMods.Server/Utils/Csv/Utils/ExportOutputFormatter.cs index 8a1f7822..97ec3429 100644 --- a/src/BUTR.Site.NexusMods.Server/Utils/Csv/Utils/ExportOutputFormatter.cs +++ b/src/BUTR.Site.NexusMods.Server/Utils/Csv/Utils/ExportOutputFormatter.cs @@ -13,7 +13,7 @@ namespace BUTR.Site.NexusMods.Server.Utils.Csv.Utils; -public class ExportOutputFormatter : TextOutputFormatter where TCsvFile: ICsvFile +public class ExportOutputFormatter : TextOutputFormatter where TCsvFile : ICsvFile { private static string ContentType => "text/csv"; @@ -42,11 +42,11 @@ public override async Task WriteResponseBodyAsync(OutputFormatterWriteContext co }; if (data is null || type is null) throw new InvalidOperationException("Invalid csv data type!"); - - await WriteCsvCollection(context.HttpContext, data, selectedEncoding); + + await WriteCsvCollectionAsync(context.HttpContext, data, selectedEncoding); } - private static async Task WriteCsvCollection(HttpContext context, IEnumerable entries, Encoding selectedEncoding) + private static async Task WriteCsvCollectionAsync(HttpContext context, IEnumerable entries, Encoding selectedEncoding) { var response = context.Response; @@ -57,7 +57,7 @@ private static async Task WriteCsvCollection(HttpContext context, IEnumerable(); await csv.NextRecordAsync(); await csv.WriteRecordsAsync(entries);