parent
4f5946bc67
commit
0106bc5111
@ -0,0 +1,12 @@
|
|||||||
|
namespace Recyclarr.Cli.Pipelines.QualityProfile.Api;
|
||||||
|
|
||||||
|
public static class DtoUtil
|
||||||
|
{
|
||||||
|
public static void SetIfNotNull<T>(ref T propertyValue, T? newValue)
|
||||||
|
{
|
||||||
|
if (newValue is not null)
|
||||||
|
{
|
||||||
|
propertyValue = newValue;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in new issue