mirror of
https://github.com/bitwarden/mobile
synced 2025-12-15 07:43:37 +00:00
Changed all C# control flow block statements to include space between keyword and open paren (#800)
This commit is contained in:
@@ -13,7 +13,7 @@ namespace Bit.Core.Utilities
|
||||
|
||||
public static void Init(string customUserAgent = null)
|
||||
{
|
||||
if(Inited)
|
||||
if (Inited)
|
||||
{
|
||||
return;
|
||||
}
|
||||
@@ -91,7 +91,7 @@ namespace Bit.Core.Utilities
|
||||
|
||||
public static void Register<T>(string serviceName, T obj)
|
||||
{
|
||||
if(RegisteredServices.ContainsKey(serviceName))
|
||||
if (RegisteredServices.ContainsKey(serviceName))
|
||||
{
|
||||
throw new Exception($"Service {serviceName} has already been registered.");
|
||||
}
|
||||
@@ -100,11 +100,11 @@ namespace Bit.Core.Utilities
|
||||
|
||||
public static T Resolve<T>(string serviceName, bool dontThrow = false)
|
||||
{
|
||||
if(RegisteredServices.ContainsKey(serviceName))
|
||||
if (RegisteredServices.ContainsKey(serviceName))
|
||||
{
|
||||
return (T)RegisteredServices[serviceName];
|
||||
}
|
||||
if(dontThrow)
|
||||
if (dontThrow)
|
||||
{
|
||||
return (T)(object)null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user