michaelwittig / node-i18n-iso-countries

i18n for ISO 3166-1 country codes
MIT License
816 stars 262 forks source link

fix: undefined as return type is missing #319

Closed alias-mac closed 1 year ago

alias-mac commented 1 year ago

Several functions return undefined, but they are defined as returning string always.

This tries to fix all the use cases I found, but there might be more.

Here are some examples: https://github.com/michaelwittig/node-i18n-iso-countries/blob/cf01cdadefc7758dcf9faf50186200cd8720a700/index.js#L227 https://github.com/michaelwittig/node-i18n-iso-countries/blob/cf01cdadefc7758dcf9faf50186200cd8720a700/index.js#L227