Skip to content

Commit

Permalink
Re-add bodies to constructors
Browse files Browse the repository at this point in the history
  • Loading branch information
Hinton committed Sep 21, 2023
1 parent fe4281e commit e79c3d1
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 4 deletions.
5 changes: 4 additions & 1 deletion languages/csharp/Bitwarden.Sdk/BitwardenSafeHandle.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ namespace Bitwarden.Sdk;

internal class BitwardenSafeHandle : SafeHandleZeroOrMinusOneIsInvalid
{
public BitwardenSafeHandle() : base(true) => SetHandle(handle);
public BitwardenSafeHandle() : base(true)
{
SetHandle(handle);
}

protected override bool ReleaseHandle()
{
Expand Down
5 changes: 4 additions & 1 deletion languages/csharp/Bitwarden.Sdk/CommandRunner.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,10 @@ internal class CommandRunner
{
private readonly BitwardenSafeHandle _handle;

internal CommandRunner(BitwardenSafeHandle handle) => _handle = handle;
internal CommandRunner(BitwardenSafeHandle handle)
{
_handle = handle;
}

internal T? RunCommand<T>(Command command)
{
Expand Down
5 changes: 4 additions & 1 deletion languages/csharp/Bitwarden.Sdk/ProjectsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ public class ProjectsClient
{
private readonly CommandRunner _commandRunner;

internal ProjectsClient(CommandRunner commandRunner) => _commandRunner = commandRunner;
internal ProjectsClient(CommandRunner commandRunner)
{
_commandRunner = commandRunner;
}

public ProjectResponse Get(Guid id)
{
Expand Down
5 changes: 4 additions & 1 deletion languages/csharp/Bitwarden.Sdk/SecretsClient.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,10 @@ public class SecretsClient
{
private readonly CommandRunner _commandRunner;

internal SecretsClient(CommandRunner commandRunner) => _commandRunner = commandRunner;
internal SecretsClient(CommandRunner commandRunner)
{
_commandRunner = commandRunner;
}

public SecretResponse Get(Guid id)
{
Expand Down

0 comments on commit e79c3d1

Please sign in to comment.