Skip to content

Commit

Permalink
refactor: suppress null value as UserName is never null
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolaVetnic committed Jan 22, 2024
1 parent 2851b0e commit 8be174e
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@ public async Task<RegisterDeviceResponse> Handle(RegisterDeviceCommand command,

await _identitiesRepository.AddUser(user, command.DevicePassword);

_logger.CreatedDevice(user.DeviceId, user.Id, user.UserName);
_logger.CreatedDevice(user.DeviceId, user.Id, user.UserName!);

return new RegisterDeviceResponse
{
Id = user.DeviceId,
Username = user.UserName,
Username = user.UserName!,
CreatedByDevice = user.Device.CreatedByDevice,
CreatedAt = user.Device.CreatedAt
};
Expand Down

0 comments on commit 8be174e

Please sign in to comment.