Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}).catch(err => {
throw new PublicError('Sorry, Glosbe dictionary is not responding. Please try again later.', 'Error', err);
}).then(data => {
if (data.result !== 'ok') {
}).catch(err => {
throw new PublicError('Sorry, Glosbe dictionary is not responding. Please try again later.', 'Error', err);
}).then(data => {
if (data.result !== 'ok') {