Skip to content

Commit 50d535e

Browse files
authored
fix: adds missing parentheses in pattern matching (#671)
Signed-off-by: Vincent Biret <vibiret@microsoft.com>
1 parent c7890f4 commit 50d535e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/abstractions/ApiClientBuilder.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ private static ParseNodeFactoryRegistry EnableBackingStoreForParseNodeRegistry(P
6969
EnableBackingStoreForParseNodeRegistry(ParseNodeFactoryRegistry.DefaultInstance);
7070
var keysToUpdate = registry
7171
.ContentTypeAssociatedFactories
72-
.Where(static x => x.Value is not BackingStoreParseNodeFactory or ParseNodeFactoryRegistry)
72+
.Where(static x => x.Value is not (BackingStoreParseNodeFactory or ParseNodeFactoryRegistry))
7373
.Select(static x => x.Key)
7474
.ToArray();
7575
foreach(var key in keysToUpdate)
@@ -85,7 +85,7 @@ private static SerializationWriterFactoryRegistry EnableBackingStoreForSerializa
8585
EnableBackingStoreForSerializationRegistry(SerializationWriterFactoryRegistry.DefaultInstance);
8686
var keysToUpdate = registry
8787
.ContentTypeAssociatedFactories
88-
.Where(static x => x.Value is not BackingStoreSerializationWriterProxyFactory or SerializationWriterFactoryRegistry)
88+
.Where(static x => x.Value is not (BackingStoreSerializationWriterProxyFactory or SerializationWriterFactoryRegistry))
8989
.Select(static x => x.Key)
9090
.ToArray();
9191

0 commit comments

Comments
 (0)