Fix incorrect return type causing an error (#1623)

This commit is contained in:
toasted-nutbread 2021-04-21 18:11:43 -04:00 committed by GitHub
parent b40cfe0458
commit f022febfe9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -172,7 +172,7 @@ class Translator {
const {alphanumeric, wildcard} = options; const {alphanumeric, wildcard} = options;
text = this._getSearchableText(text, alphanumeric); text = this._getSearchableText(text, alphanumeric);
if (text.length === 0) { if (text.length === 0) {
return [[], 0]; return {dictionaryEntries: [], originalTextLength: 0};
} }
const deinflections = await ( const deinflections = await (