mirror of
https://github.com/tribufu/node-gamedig
synced 2026-05-06 15:17:36 +00:00
Minor cleanup to satisfy code inspection
This commit is contained in:
parent
20b012ba80
commit
c0548fb886
4 changed files with 5 additions and 3 deletions
|
|
@ -14,7 +14,7 @@ function parseList(str) {
|
|||
|
||||
if(value === 'true' || value === '') value = true;
|
||||
else if(value === 'false') value = false;
|
||||
else if(!isNaN(value)) value = parseInt(value);
|
||||
else if(!isNaN(parseInt(value))) value = parseInt(value);
|
||||
|
||||
out[key] = value;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue