diff --git a/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs b/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs index d59f348666b429..255642f14f41f3 100644 --- a/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs +++ b/src/libraries/System.Formats.Tar/src/System/Formats/Tar/TarEntry.cs @@ -430,7 +430,7 @@ private Task ExtractToFileInternalAsync(string filePath, string? linkTargetPath, private void CreateNonRegularFile(string filePath, string? linkTargetPath) { - Debug.Assert(EntryType is not TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile); + Debug.Assert(EntryType is not (TarEntryType.RegularFile or TarEntryType.V7RegularFile or TarEntryType.ContiguousFile)); switch (EntryType) { diff --git a/src/tools/illink/src/linker/Linker/UnconditionalSuppressMessageAttributeState.cs b/src/tools/illink/src/linker/Linker/UnconditionalSuppressMessageAttributeState.cs index 6dac894accc815..81c3df63647b4e 100644 --- a/src/tools/illink/src/linker/Linker/UnconditionalSuppressMessageAttributeState.cs +++ b/src/tools/illink/src/linker/Linker/UnconditionalSuppressMessageAttributeState.cs @@ -257,7 +257,7 @@ static bool TryDecodeSuppressMessageAttributeData (CustomAttribute attribute, ou IEnumerable DecodeSuppressions (ICustomAttributeProvider provider) { - Debug.Assert (provider is not ModuleDefinition or AssemblyDefinition); + Debug.Assert (provider is not (ModuleDefinition or AssemblyDefinition)); if (!_context.CustomAttributes.HasAny (provider)) yield break;