Fix incorrect return type causing an error (#1623)
This commit is contained in:
parent
b40cfe0458
commit
f022febfe9
@ -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 (
|
||||||
|
Loading…
Reference in New Issue
Block a user