mirror of
https://github.com/bitwarden/server
synced 2025-12-14 15:23:42 +00:00
Changed all C# control flow block statements to include space between keyword and open paren
This commit is contained in:
@@ -32,7 +32,7 @@ namespace Bit.Core.Services
|
||||
await InitOrganizationAbilitiesAsync();
|
||||
var newAbility = new OrganizationAbility(organization);
|
||||
|
||||
if(_orgAbilities.ContainsKey(organization.Id))
|
||||
if (_orgAbilities.ContainsKey(organization.Id))
|
||||
{
|
||||
_orgAbilities[organization.Id] = newAbility;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ namespace Bit.Core.Services
|
||||
|
||||
public virtual Task DeleteOrganizationAbilityAsync(Guid organizationId)
|
||||
{
|
||||
if(_orgAbilities != null && _orgAbilities.ContainsKey(organizationId))
|
||||
if (_orgAbilities != null && _orgAbilities.ContainsKey(organizationId))
|
||||
{
|
||||
_orgAbilities.Remove(organizationId);
|
||||
}
|
||||
@@ -55,7 +55,7 @@ namespace Bit.Core.Services
|
||||
private async Task InitOrganizationAbilitiesAsync()
|
||||
{
|
||||
var now = DateTime.UtcNow;
|
||||
if(_orgAbilities == null || (now - _lastOrgAbilityRefresh) > _orgAbilitiesRefreshInterval)
|
||||
if (_orgAbilities == null || (now - _lastOrgAbilityRefresh) > _orgAbilitiesRefreshInterval)
|
||||
{
|
||||
var abilities = await _organizationRepository.GetManyAbilitiesAsync();
|
||||
_orgAbilities = abilities.ToDictionary(a => a.Id);
|
||||
|
||||
Reference in New Issue
Block a user