From b3bbc4c8fdae00e9be020d535f74cd45c7650dbe Mon Sep 17 00:00:00 2001 From: Kevin Hahn Date: Mon, 25 Nov 2024 14:43:49 +0700 Subject: [PATCH] mark up string diff as allowing null strings --- backend/FwLite/MiniLcm/SyncHelpers/SimpleStringDiff.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/backend/FwLite/MiniLcm/SyncHelpers/SimpleStringDiff.cs b/backend/FwLite/MiniLcm/SyncHelpers/SimpleStringDiff.cs index 2708a6b23..37f9e7870 100644 --- a/backend/FwLite/MiniLcm/SyncHelpers/SimpleStringDiff.cs +++ b/backend/FwLite/MiniLcm/SyncHelpers/SimpleStringDiff.cs @@ -5,8 +5,8 @@ namespace MiniLcm.SyncHelpers; public static class SimpleStringDiff { public static IEnumerable> GetStringDiff(string path, - string before, - string after) where T : class + string? before, + string? after) where T : class { if (before == after) yield break; if (after is null) yield return new Operation("remove", $"/{path}", null);