Remove redundant type declaration bodies.

This commit is contained in:
2023-10-03 18:54:15 +01:00
parent cf72e7b617
commit 9a8265418d
4 changed files with 4 additions and 5 deletions

View File

@@ -49,7 +49,7 @@ namespace Aaru.CommonTypes.AaruMetadata;
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull)]
[JsonSerializable(typeof(MetadataJson))]
// ReSharper disable once PartialTypeWithSinglePart
public partial class MetadataJsonContext : JsonSerializerContext {}
public partial class MetadataJsonContext : JsonSerializerContext;
public class MetadataJson
{

View File

@@ -48,7 +48,6 @@ using Aaru.CommonTypes.Structs.Devices.ATA;
using Aaru.CommonTypes.Structs.Devices.SCSI;
using Aaru.CommonTypes.Structs.Devices.SCSI.Modes;
#pragma warning disable 1591
// ReSharper disable VirtualMemberNeverOverridden.Global
@@ -64,7 +63,7 @@ namespace Aaru.CommonTypes.Metadata;
[JsonSourceGenerationOptions(WriteIndented = true, DefaultIgnoreCondition = JsonIgnoreCondition.WhenWritingNull,
IncludeFields = true)]
[JsonSerializable(typeof(DeviceReport))]
public partial class DeviceReportContext : JsonSerializerContext {}
public partial class DeviceReportContext : JsonSerializerContext;
public class DeviceReport
{

View File

@@ -48,7 +48,7 @@ namespace Aaru.CommonTypes.Metadata;
IncludeFields = true)]
[JsonSerializable(typeof(ResumeJson))]
// ReSharper disable once PartialTypeWithSinglePart
public partial class ResumeJsonContext : JsonSerializerContext {}
public partial class ResumeJsonContext : JsonSerializerContext;
public class ResumeJson
{

View File

@@ -88,7 +88,7 @@ public class Stats
IncludeFields = true)]
[JsonSerializable(typeof(StatsDto))]
// ReSharper disable once PartialTypeWithSinglePart
public partial class StatsDtoContext : JsonSerializerContext {}
public partial class StatsDtoContext : JsonSerializerContext;
/// <summary>DTO for statistics</summary>
[SuppressMessage("ReSharper", "CollectionNeverQueried.Global")]