From 31bd770396fe79f349ebc5e9b8cd4d19f7e2b440 Mon Sep 17 00:00:00 2001 From: David Kallesen Date: Mon, 17 Mar 2025 02:03:40 +0100 Subject: [PATCH] fix: test on less --- .../Extensions/Builder/ViewModelBuilderExtensions.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Atc.Wpf.SourceGenerators/Extensions/Builder/ViewModelBuilderExtensions.cs b/src/Atc.Wpf.SourceGenerators/Extensions/Builder/ViewModelBuilderExtensions.cs index 8ccb9fa8..0094f9bb 100644 --- a/src/Atc.Wpf.SourceGenerators/Extensions/Builder/ViewModelBuilderExtensions.cs +++ b/src/Atc.Wpf.SourceGenerators/Extensions/Builder/ViewModelBuilderExtensions.cs @@ -110,11 +110,11 @@ private static void GenerateCallbackInlineCode( foreach (var s in sa) { var line = s.Trim(); - if (line.EndsWith("();", StringComparison.Ordinal)) + if (line.EndsWith(");", StringComparison.Ordinal)) { builder.AppendLine(line); } - else if (line.EndsWith("()", StringComparison.Ordinal)) + else if (line.EndsWith(")", StringComparison.Ordinal)) { builder.AppendLine(line + ";"); }