Skip to content

Commit

Permalink
mark up string diff as allowing null strings
Browse files Browse the repository at this point in the history
  • Loading branch information
hahn-kev committed Nov 25, 2024
1 parent e534715 commit b3bbc4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions backend/FwLite/MiniLcm/SyncHelpers/SimpleStringDiff.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ namespace MiniLcm.SyncHelpers;
public static class SimpleStringDiff
{
public static IEnumerable<Operation<T>> GetStringDiff<T>(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<T>("remove", $"/{path}", null);
Expand Down

0 comments on commit b3bbc4c

Please sign in to comment.