Skip to content

Commit

Permalink
Additional: Remove unreachable return from cifES.js (#1994)
Browse files Browse the repository at this point in the history
  • Loading branch information
manospasj authored and Arkni committed Jun 10, 2017
1 parent d28265a commit 10f6eb5
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/additional/cifES.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,12 +106,9 @@ $.validator.addMethod( "cifES", function( value, element ) {
// Control must be a letter
} else if ( letter.match( /[KPQS]/ ) ) {
return control === control_letter;

// Can be either
} else {
return control === control_digit || control === control_letter;
}

return false;
// Can be either
return control === control_digit || control === control_letter;

}, "Please specify a valid CIF number." );

0 comments on commit 10f6eb5

Please sign in to comment.