Skip to content

Commit

Permalink
Making sure Builder method of PatchOperationListBuilder doesnt includ…
Browse files Browse the repository at this point in the history
…e null PatchOpeartion in the list
  • Loading branch information
ewdlop committed Mar 24, 2024
1 parent f93011e commit 929ed86
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -551,6 +551,6 @@ public PatchOperationListBuilder WithSet(object value, Func<PropertyInfo, bool>?
return this;
}

public PatchOperationList Build() => _patchOperations;
public PatchOperationList Build() => _patchOperations.Where(op=> op is not null).ToList();
}
}

0 comments on commit 929ed86

Please sign in to comment.