mirror of
https://github.com/factbook/factbook.json.git
synced 2026-07-01 19:49:37 +02:00
Code cleanup
This commit is contained in:
parent
0599225f0b
commit
2d44771eb7
1 changed files with 3 additions and 5 deletions
|
|
@ -11,11 +11,9 @@ const readFile = (dir, file) => {
|
||||||
filename: file
|
filename: file
|
||||||
};
|
};
|
||||||
|
|
||||||
if (country.Government['Country name'] && country.Government['Country name']['conventional short form']) {
|
currentCountry.country = (country.Government['Country name'] &&
|
||||||
currentCountry.country = country.Government['Country name']['conventional short form'].text;
|
country.Government['Country name']['conventional short form']) ?
|
||||||
} else {
|
country.Government['Country name']['conventional short form'].text : '';
|
||||||
currentCountry.country = '';
|
|
||||||
}
|
|
||||||
|
|
||||||
countryIndex.push(currentCountry);
|
countryIndex.push(currentCountry);
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue