aboutsummaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorAlex Yatskov <FooSoft@users.noreply.github.com>2019-10-02 08:39:42 -0700
committerGitHub <noreply@github.com>2019-10-02 08:39:42 -0700
commitd3d162ea785457d9533d57f861afa82d2c2b0e01 (patch)
tree3edfee6769df42dabd2d6cbb1881370485acfceb /ext
parentfba2bef90522dcfb084af57c9fae5d59c0f7f033 (diff)
parent861474d2fcebd9db82b25700c71351b7d6611794 (diff)
Merge pull request #232 from toasted-nutbread/consistent-frontend-return
Fix inconsistent return type
Diffstat (limited to 'ext')
-rw-r--r--ext/fg/js/frontend.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/fg/js/frontend.js b/ext/fg/js/frontend.js
index d5bb00c0..3292cac4 100644
--- a/ext/fg/js/frontend.js
+++ b/ext/fg/js/frontend.js
@@ -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());