Skip to content

Commit

Permalink
Merge pull request #33 from aureliojargas/patch-1
Browse files Browse the repository at this point in the history
Remove redundant check
  • Loading branch information
fernahh committed Mar 16, 2016
2 parents 2a568c8 + c39607e commit be5d914
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/creditCard.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,10 +46,6 @@ class CreditCard {
isExpirationDateValid(month, year) {
let m = month;
let y = year;
let yearLength = y.length;

if (yearLength !== 4)
return false;

m = parseInt(m, 10);
y = parseInt(y, 10);
Expand Down

0 comments on commit be5d914

Please sign in to comment.