Skip to content

Commit 5aed9ac

Browse files
committed
Remove redundant condition
1 parent 2db04b8 commit 5aed9ac

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/DynamoDBGenerator.SourceGenerator/DynamoDBDMarshaller.cs

+3-3
Original file line numberDiff line numberDiff line change
@@ -64,9 +64,9 @@ private static IEnumerable<string> CreateFileContent(INamedTypeSymbol type, Comp
6464
{ IsRecord: true, TypeKind: TypeKind.Class, IsSealed: false } => "partial record",
6565
{ IsRecord: false, TypeKind: TypeKind.Class, IsSealed: true } => "sealed partial class",
6666
{ IsRecord: false, TypeKind: TypeKind.Class, IsSealed: false } => "partial class",
67-
{ IsRecord: true, TypeKind: TypeKind.Struct or TypeKind.Structure, IsReadOnly: true } => "readonly partial record struct",
68-
{ IsRecord: false, TypeKind: TypeKind.Struct or TypeKind.Structure, IsReadOnly: true } => "readonly partial struct",
69-
{ IsRecord: false, TypeKind: TypeKind.Struct or TypeKind.Structure, IsReadOnly: false } => "partial struct",
67+
{ IsRecord: true, TypeKind: TypeKind.Struct, IsReadOnly: true } => "readonly partial record struct",
68+
{ IsRecord: false, TypeKind: TypeKind.Struct, IsReadOnly: true } => "readonly partial struct",
69+
{ IsRecord: false, TypeKind: TypeKind.Struct, IsReadOnly: false } => "partial struct",
7070
_ => throw new NotImplementedException("Could not determine whether the type is a struct, class or record.")
7171
};
7272

0 commit comments

Comments
 (0)