Use pattern matching

This commit is contained in:
Jason Nelson
2020-11-18 09:29:38 -08:00
parent a1d45b44cd
commit b57df8026a

View File

@@ -602,7 +602,7 @@ namespace SharpCompress.Common.SevenZip
#endif
continue;
}
if (type == BlockType.Crc || type == BlockType.Size)
if (type is BlockType.Crc or BlockType.Size)
{
break;
}