Skip to content

Commit cbfdf80

Browse files
committed
removed redundant code
1 parent bd89fda commit cbfdf80

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

Sprint-3/1-implement-and-rewrite-tests/implement/3-get-card-value.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,7 @@ function getCardValue(card) {
3535
if (rank === "A") {
3636
return 11;
3737
}
38-
else if ( rank >= 2 && rank <= 10) {
39-
return Number(rank);
40-
}
38+
return Number(rank);
4139
}
4240

4341
// The line below allows us to load the getCardValue function into tests in other files.

0 commit comments

Comments
 (0)