1
0
mirror of https://github.com/bitwarden/server.git synced 2025-07-02 00:22:50 -05:00

Changed all C# control flow block statements to include space between keyword and open paren

This commit is contained in:
Chad Scharf
2020-03-27 14:36:37 -04:00
parent 943aea9a12
commit 9800b752c0
243 changed files with 2258 additions and 2258 deletions

View File

@ -74,12 +74,12 @@ namespace Bit.Api.Controllers
{
CheckUsage();
if(!string.IsNullOrWhiteSpace(model.UserId))
if (!string.IsNullOrWhiteSpace(model.UserId))
{
await _pushNotificationService.SendPayloadToUserAsync(Prefix(model.UserId),
model.Type.Value, model.Payload, Prefix(model.Identifier), Prefix(model.DeviceId));
}
else if(!string.IsNullOrWhiteSpace(model.OrganizationId))
else if (!string.IsNullOrWhiteSpace(model.OrganizationId))
{
await _pushNotificationService.SendPayloadToOrganizationAsync(Prefix(model.OrganizationId),
model.Type.Value, model.Payload, Prefix(model.Identifier), Prefix(model.DeviceId));
@ -88,7 +88,7 @@ namespace Bit.Api.Controllers
private string Prefix(string value)
{
if(string.IsNullOrWhiteSpace(value))
if (string.IsNullOrWhiteSpace(value))
{
return null;
}
@ -98,7 +98,7 @@ namespace Bit.Api.Controllers
private void CheckUsage()
{
if(CanUse())
if (CanUse())
{
return;
}
@ -108,7 +108,7 @@ namespace Bit.Api.Controllers
private bool CanUse()
{
if(_environment.IsDevelopment())
if (_environment.IsDevelopment())
{
return true;
}