Skip to content

Commit

Permalink
fix formatting
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Bacher <[email protected]>
  • Loading branch information
bacherfl committed Jan 5, 2024
1 parent 1b69d84 commit fca794d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions src/OpenFeature/EventExecutor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ public EventExecutor()

internal void AddApiLevelHandler(ProviderEventTypes eventType, EventHandlerDelegate handler)
{
lock(this._lockObj)
lock (this._lockObj)
{
if (!this._apiHandlers.TryGetValue(eventType, out var eventHandlers))
{
Expand All @@ -43,7 +43,7 @@ internal void AddApiLevelHandler(ProviderEventTypes eventType, EventHandlerDeleg

internal void RemoveApiLevelHandler(ProviderEventTypes type, EventHandlerDelegate handler)
{
lock(this._lockObj)
lock (this._lockObj)
{
if (this._apiHandlers.TryGetValue(type, out var eventHandlers))
{
Expand All @@ -54,7 +54,7 @@ internal void RemoveApiLevelHandler(ProviderEventTypes type, EventHandlerDelegat

internal void AddClientHandler(string client, ProviderEventTypes eventType, EventHandlerDelegate handler)
{
lock(this._lockObj)
lock (this._lockObj)
{
// check if there is already a list of handlers for the given client and event type
if (!this._clientHandlers.TryGetValue(client, out var registry))
Expand All @@ -80,7 +80,7 @@ internal void AddClientHandler(string client, ProviderEventTypes eventType, Even

internal void RemoveClientHandler(string client, ProviderEventTypes type, EventHandlerDelegate handler)
{
lock(this._lockObj)
lock (this._lockObj)
{
if (this._clientHandlers.TryGetValue(client, out var clientEventHandlers))
{
Expand All @@ -98,7 +98,7 @@ internal void RegisterDefaultFeatureProvider(FeatureProvider provider)
{
return;
}
lock(this._lockObj)
lock (this._lockObj)
{
var oldProvider = this._defaultProvider;

Expand All @@ -110,7 +110,7 @@ internal void RegisterDefaultFeatureProvider(FeatureProvider provider)

internal void RegisterClientFeatureProvider(string client, FeatureProvider provider)
{
lock(this._lockObj)
lock (this._lockObj)
{
var newProvider = new FeatureProviderReference(provider);
FeatureProviderReference oldProvider = null;
Expand Down Expand Up @@ -228,7 +228,7 @@ private async void ProcessEventAsync()
switch (item)
{
case Event e:
lock(this._lockObj)
lock (this._lockObj)
{
if (this._apiHandlers.TryGetValue(e.EventPayload.Type, out var eventHandlers))
{
Expand Down

0 comments on commit fca794d

Please sign in to comment.