mirror of
https://github.com/bitwarden/server
synced 2025-12-22 03:03:33 +00:00
Changed all C# control flow block statements to include space between keyword and open paren
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Bit.Api.Controllers
|
||||
public async Task<DomainsResponseModel> GetDomains(bool excluded = true)
|
||||
{
|
||||
var user = await _userService.GetUserByPrincipalAsync(User);
|
||||
if(user == null)
|
||||
if (user == null)
|
||||
{
|
||||
throw new UnauthorizedAccessException();
|
||||
}
|
||||
@@ -37,7 +37,7 @@ namespace Bit.Api.Controllers
|
||||
public async Task<DomainsResponseModel> PutDomains([FromBody]UpdateDomainsRequestModel model)
|
||||
{
|
||||
var user = await _userService.GetUserByPrincipalAsync(User);
|
||||
if(user == null)
|
||||
if (user == null)
|
||||
{
|
||||
throw new UnauthorizedAccessException();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user