Skip to content

Commit

Permalink
Remove redundant condition
Browse files Browse the repository at this point in the history
  • Loading branch information
inputfalken committed Dec 8, 2024
1 parent 2db04b8 commit 5aed9ac
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/DynamoDBGenerator.SourceGenerator/DynamoDBDMarshaller.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,9 +64,9 @@ private static IEnumerable<string> CreateFileContent(INamedTypeSymbol type, Comp
{ IsRecord: true, TypeKind: TypeKind.Class, IsSealed: false } => "partial record",
{ IsRecord: false, TypeKind: TypeKind.Class, IsSealed: true } => "sealed partial class",
{ IsRecord: false, TypeKind: TypeKind.Class, IsSealed: false } => "partial class",
{ IsRecord: true, TypeKind: TypeKind.Struct or TypeKind.Structure, IsReadOnly: true } => "readonly partial record struct",
{ IsRecord: false, TypeKind: TypeKind.Struct or TypeKind.Structure, IsReadOnly: true } => "readonly partial struct",
{ IsRecord: false, TypeKind: TypeKind.Struct or TypeKind.Structure, IsReadOnly: false } => "partial struct",
{ IsRecord: true, TypeKind: TypeKind.Struct, IsReadOnly: true } => "readonly partial record struct",
{ IsRecord: false, TypeKind: TypeKind.Struct, IsReadOnly: true } => "readonly partial struct",
{ IsRecord: false, TypeKind: TypeKind.Struct, IsReadOnly: false } => "partial struct",
_ => throw new NotImplementedException("Could not determine whether the type is a struct, class or record.")
};

Expand Down

0 comments on commit 5aed9ac

Please sign in to comment.