mirror of
https://github.com/bitwarden/server.git
synced 2025-07-03 09:02:48 -05:00
Changed all C# control flow block statements to include space between keyword and open paren
This commit is contained in:
@ -12,11 +12,11 @@ namespace Bit.Core.Utilities
|
||||
public override void OnActionExecuting(ActionExecutingContext context)
|
||||
{
|
||||
var globalSettings = context.HttpContext.RequestServices.GetRequiredService<GlobalSettings>();
|
||||
if(SelfHostedOnly && !globalSettings.SelfHosted)
|
||||
if (SelfHostedOnly && !globalSettings.SelfHosted)
|
||||
{
|
||||
throw new BadRequestException("Only allowed when self hosted.");
|
||||
}
|
||||
else if(NotSelfHostedOnly && globalSettings.SelfHosted)
|
||||
else if (NotSelfHostedOnly && globalSettings.SelfHosted)
|
||||
{
|
||||
throw new BadRequestException("Only allowed when not self hosted.");
|
||||
}
|
||||
|
Reference in New Issue
Block a user