summaryrefslogtreecommitdiff
path: root/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'index.js')
-rw-r--r--index.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/index.js b/index.js
index b05f2e1..462177e 100644
--- a/index.js
+++ b/index.js
@@ -8,14 +8,10 @@ module.exports = {
};
function parse(idNumber) {
- if (typeof(idNumber) !== 'string') {
- return undefined;
- }
-
var isValid = validate(idNumber);
if (!isValid) {
return {
- valid: false
+ isValid: false
};
}