Skip to content

Commit

Permalink
fix(EjectCommand): Clone now works correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
Computerdores committed Apr 9, 2024
1 parent c5e361e commit 39138ea
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions AdvancedTerminalAPI/Vanillin/Commands/EjectCommand.cs
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,6 @@ namespace Computerdores.Vanillin.Commands;
public class EjectCommand : ICommand, IPredictable {

private bool _awaitingConfirmation;

public EjectCommand() {}
private EjectCommand(bool awaitingConfirmation) {
_awaitingConfirmation = awaitingConfirmation;
}

public string GetName() => "eject";

Expand Down Expand Up @@ -51,5 +46,5 @@ select option
}


public object Clone() => new EjectCommand(_awaitingConfirmation);
public object Clone() => new EjectCommand();
}

0 comments on commit 39138ea

Please sign in to comment.