Skip to content

Commit

Permalink
fixed mvn clean package mistakes
Browse files Browse the repository at this point in the history
  • Loading branch information
RostyslavKuzmych committed Oct 23, 2023
1 parent 54409c4 commit ae5036e
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions src/main/java/core/basesyntax/model/Operation.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,13 @@ public enum Operation {
Operation(String code) {
this.code = code;
}

public static Operation getOperationFromString(String string) {
return switch (string) {
case "r" -> Operation.RETURN;
case "s" -> Operation.SUPPLY;
case "b" -> Operation.BALANCE;
default -> Operation.PURCHASE;
};
return switch (string) {
case "r" -> Operation.RETURN;
case "s" -> Operation.SUPPLY;
case "b" -> Operation.BALANCE;
default -> Operation.PURCHASE;
};
}
}

0 comments on commit ae5036e

Please sign in to comment.