Merge pull request #232 from toasted-nutbread/consistent-frontend-return
Fix inconsistent return type
This commit is contained in:
commit
d3d162ea78
@ -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());
|
||||
|
Loading…
Reference in New Issue
Block a user