Skip to content

Commit

Permalink
remove unnecessary check
Browse files Browse the repository at this point in the history
  • Loading branch information
joonsp committed Nov 7, 2013
1 parent 813ac09 commit 62e061e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions library/Xi/Algorithm/Luhn.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,6 @@ public function generate($number)
*/
public function validate($number)
{
if (strlen($number) < 2) {
return false;
}

$original = substr($number, 0, strlen($number) - 1);

return $this->generate($original) === $number;
Expand Down

0 comments on commit 62e061e

Please sign in to comment.