Skip to content

Commit

Permalink
Merge pull request #28 from BUTR/code-formatting/fix-codeformatting
Browse files Browse the repository at this point in the history
Automated PR to fix formatting errors
  • Loading branch information
Aragas authored Sep 30, 2023
2 parents 534bcd6 + 1f9967d commit 298f534
Show file tree
Hide file tree
Showing 11 changed files with 18 additions and 16 deletions.
2 changes: 1 addition & 1 deletion src/BUTR.CrashReportServer/Extensions/HostExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ public static async Task<IHost> SeedDbContextAsync<TDbContext>(this IHost host)
var logger = scope.ServiceProvider.GetRequiredService<ILogger<TDbContext>>();
try
{
var migrations = (await dbContext.Database.GetPendingMigrationsAsync()).Count();
var migrations = (await dbContext.Database.GetPendingMigrationsAsync()).Count();
await dbContext.Database.MigrateAsync();
if (migrations > 0) await dbContext.Database.ExecuteSqlRawAsync("VACUUM;");
}
Expand Down
2 changes: 1 addition & 1 deletion src/BUTR.CrashReportServer/Extensions/TextExtensions.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Text;

Expand Down
4 changes: 2 additions & 2 deletions src/BUTR.CrashReportServer/Extensions/UnicodeStream.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;
using System.IO;
using System.Runtime.InteropServices;
using System.Threading;
Expand Down Expand Up @@ -86,7 +86,7 @@ public override void Flush() { }
public override long Position { get => throw new NotSupportedException(); set => throw new NotSupportedException(); }
public override long Seek(long offset, SeekOrigin origin) => throw new NotSupportedException();
public override void SetLength(long value) => throw new NotSupportedException();
public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException();
public override void Write(byte[] buffer, int offset, int count) => throw new NotSupportedException();

protected override void Dispose(bool disposing)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;

using System;

#nullable disable

Expand Down Expand Up @@ -34,4 +35,4 @@ protected override void Down(MigrationBuilder migrationBuilder)
name: "file_entity");
}
}
}
}
7 changes: 4 additions & 3 deletions src/BUTR.CrashReportServer/Migrations/20230927114922_Json.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using System;
using Microsoft.EntityFrameworkCore.Migrations;
using Microsoft.EntityFrameworkCore.Migrations;

using System;

#nullable disable

Expand Down Expand Up @@ -114,4 +115,4 @@ protected override void Down(MigrationBuilder migrationBuilder)
defaultValue: 0L);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,4 @@ protected override void Down(MigrationBuilder migrationBuilder)
onDelete: ReferentialAction.Cascade);
}
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -33,4 +33,4 @@ protected override void Down(MigrationBuilder migrationBuilder)
oldDefaultValueSql: "hex(randomblob(3))");
}
}
}
}
2 changes: 1 addition & 1 deletion src/BUTR.CrashReportServer/Models/Database/IdEntity.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using System;
using System;

namespace BUTR.CrashReportServer.Models.Database;

Expand Down
2 changes: 1 addition & 1 deletion src/BUTR.CrashReportServer/Models/Database/JsonEntity.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
namespace BUTR.CrashReportServer.Models.Database;
namespace BUTR.CrashReportServer.Models.Database;

public sealed record JsonEntity : IEntity
{
Expand Down
2 changes: 1 addition & 1 deletion src/BUTR.CrashReportServer/Models/TLSError.cs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
namespace BUTR.CrashReportServer.Models;
namespace BUTR.CrashReportServer.Models;

public record TLSError(string Message);
2 changes: 1 addition & 1 deletion src/BUTR.CrashReportServer/Services/HexGenerator.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
using Microsoft.Extensions.Logging;
using Microsoft.Extensions.Logging;

using System;
using System.Security.Cryptography;
Expand Down

0 comments on commit 298f534

Please sign in to comment.