Fix inconsistent return type

This commit is contained in:
toasted-nutbread 2019-10-01 19:05:30 -04:00
parent fba2bef905
commit 861474d2fc

View File

@ -333,7 +333,7 @@ class Frontend {
const searchText = textSource.text();
if (searchText.length === 0) {
return;
return false;
}
const {definitions, length} = await apiTermsFind(searchText, this.getOptionsContext());
@ -366,7 +366,7 @@ class Frontend {
const searchText = textSource.text();
if (searchText.length === 0) {
return;
return false;
}
const definitions = await apiKanjiFind(searchText, this.getOptionsContext());