Skip to content

Commit 9d8b001

Browse files
committedJan 18, 2019
[refactor:StartMenuController] Remove extraneous if statement
1 parent 705b0b3 commit 9d8b001

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed
 

‎src/main/java/core/StartMenuController.java

+1-3
Original file line numberDiff line numberDiff line change
@@ -103,9 +103,7 @@ private void handlePlayButtonPressed(ActionEvent event) throws IOException {
103103
}
104104

105105
private JokerRules getSelectedJokerRule() {
106-
if (this.jokerRules.getValue().equals("Default")) {
107-
return JokerRules.DEFAULT;
108-
} else if (this.jokerRules.getValue().equals("No Plays to Existing Melds")) {
106+
if (this.jokerRules.getValue().equals("No Plays to Existing Melds")) {
109107
return JokerRules.NO_EXISTING_MELDS;
110108
} else if (this.jokerRules.getValue().equals("No Restrictions")) {
111109
return JokerRules.LENIENT;

0 commit comments

Comments
 (0)
Please sign in to comment.