Skip to content

Commit 10f6eb5

Browse files
manospasjArkni
authored andcommitted
Additional: Remove unreachable return from cifES.js (jquery-validation#1994)
1 parent d28265a commit 10f6eb5

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/additional/cifES.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -106,12 +106,9 @@ $.validator.addMethod( "cifES", function( value, element ) {
106106
// Control must be a letter
107107
} else if ( letter.match( /[KPQS]/ ) ) {
108108
return control === control_letter;
109-
110-
// Can be either
111-
} else {
112-
return control === control_digit || control === control_letter;
113109
}
114110

115-
return false;
111+
// Can be either
112+
return control === control_digit || control === control_letter;
116113

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

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy