Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
wasabii committed Jan 6, 2025
1 parent bfdaaeb commit a866480
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions src/Alethic.Auth0.Operator/Controllers/V1ConnectionController.cs
Original file line number Diff line number Diff line change
Expand Up @@ -82,15 +82,12 @@ public V1ConnectionController(IMemoryCache cache, IKubernetesClient kube, ILogge
/// <param name="o"></param>
/// <returns></returns>
/// <exception cref="InvalidOperationException"></exception>
object? ToDictionary(object? o)
object? ToDictionary(object? o) => o switch
{
return o switch
{
JObject j => j.ToDictionary(),
null => null,
_ => throw new InvalidOperationException(),
};
}
JObject j => j.ToDictionary(),
null => null,
_ => throw new InvalidOperationException(),
};

/// <inheritdoc />
protected override async Task<string?> FindApi(IManagementApiClient api, ConnectionConf conf, CancellationToken cancellationToken)
Expand Down

0 comments on commit a866480

Please sign in to comment.