mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-01-19 05:33:31 +01:00
Remove unnecessary null check
This commit is contained in:
parent
9f8f677125
commit
0b4d94faf2
@ -200,7 +200,7 @@ namespace BTCPayServer.Controllers.GreenField
|
||||
[Authorize(Policy = Policies.CanModifyServerSettings, AuthenticationSchemes = AuthenticationSchemes.Greenfield)]
|
||||
public async Task<ActionResult<ApplicationUserData>> DeleteUser(string userId)
|
||||
{
|
||||
var user = userId == null ? null : await _userManager.FindByIdAsync(userId);
|
||||
var user = await _userManager.FindByIdAsync(userId);
|
||||
if (user == null)
|
||||
{
|
||||
return NotFound();
|
||||
|
Loading…
Reference in New Issue
Block a user