Skip to content

Commit 4873405

Browse files
committed
Remove unnecessary parentheses
1 parent c315a6c commit 4873405

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/DependencyPropertyGenerator/CommunityToolkit.DependencyPropertyGenerator.SourceGenerators/Models/TypedConstantInfo.Factory.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,7 @@ public static bool TryCreate(IOperation operation, [NotNullWhen(true)] out Typed
9292
{
9393
({ SpecialType: SpecialType.System_String }, string text) => new Primitive.String(text),
9494
({ SpecialType: SpecialType.System_Boolean}, bool flag) => new Primitive.Boolean(flag),
95-
(INamedTypeSymbol { TypeKind: TypeKind.Enum }, object value) when (operationType.TryGetEnumFieldName(value, out string? fieldName))
95+
(INamedTypeSymbol { TypeKind: TypeKind.Enum }, object value) when operationType.TryGetEnumFieldName(value, out string? fieldName)
9696
=> new KnownEnum(operationType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat), fieldName),
9797
(INamedTypeSymbol { TypeKind: TypeKind.Enum }, object value)
9898
=> new Enum(operationType.ToDisplayString(SymbolDisplayFormat.FullyQualifiedFormat), value),

0 commit comments

Comments
 (0)