Merge pull request #232 from toasted-nutbread/consistent-frontend-return

Fix inconsistent return type
This commit is contained in:
Alex Yatskov 2019-10-02 08:39:42 -07:00 committed by GitHub
commit d3d162ea78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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());