Make Action property non-nullable in InvokeRecActionCommand
Updated the `Action` property in the `InvokeRecActionCommand` class to be non-nullable by initializing it with a default value (`= null!;`). This change ensures better null safety and prevents potential null reference issues. The `= null!;` syntax suppresses compiler warnings while guaranteeing the property will be properly initialized before use.
This commit is contained in:
parent
de17d398ff
commit
a2ebbe83cb
@ -10,7 +10,7 @@ namespace ReC.Application.RecActions.Commands;
|
|||||||
|
|
||||||
public record InvokeRecActionCommand : IRequest
|
public record InvokeRecActionCommand : IRequest
|
||||||
{
|
{
|
||||||
public RecActionDto Action { get; set; }
|
public RecActionDto Action { get; set; } = null!;
|
||||||
}
|
}
|
||||||
|
|
||||||
public static class InvokeRecActionCommandExtensions
|
public static class InvokeRecActionCommandExtensions
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user