Skip to content

Commit 6ddcd78

Browse files
committed
Corrected setter
1 parent 30fabbd commit 6ddcd78

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/CommunityToolkit.Maui.SourceGenerators.Internal/Generators/BindablePropertyAttributeSourceGenerator.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,8 +349,7 @@ static void GenerateProperty(StringBuilder sb, in BindablePropertyModel info)
349349
{
350350
sb.Append(info.SetterAccessibility)
351351
.Append("set => SetValue(")
352-
.Append(info.IsReadOnlyBindableProperty ? info.BindablePropertyKeyName : info.BindablePropertyName)
353-
.Append(", value);\n");
352+
.Append(info.IsReadOnlyBindableProperty ? info.BindablePropertyKeyName : info.BindablePropertyName);
354353

355354
if (info.HasInitializer)
356355
{

0 commit comments

Comments
 (0)