diff options
author | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-11 01:43:35 +0200 |
---|---|---|
committer | siikamiika <siikamiika@users.noreply.github.com> | 2019-11-23 17:49:25 +0200 |
commit | b336ab3a9a0a2ac9a569ae217b506ceeeab6fda0 (patch) | |
tree | 2862df3a3a1ebe110747dd0046f6d3cd4c6deb5b /ext/bg/js/api.js | |
parent | 8d9a635d5c01e9a954284c82d1cddfab89f8dd5b (diff) |
use const
Diffstat (limited to 'ext/bg/js/api.js')
-rw-r--r-- | ext/bg/js/api.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/bg/js/api.js b/ext/bg/js/api.js index 967bded7..40e9b6d2 100644 --- a/ext/bg/js/api.js +++ b/ext/bg/js/api.js @@ -86,9 +86,9 @@ async function apiTextParse(text, optionsContext) { const results = []; while (text) { const term = []; - let [definitions, sourceLength] = await translator.findTerms(text, {}, options); + const [definitions, sourceLength] = await translator.findTerms(text, {}, options); if (definitions.length > 0) { - definitions = dictTermsSort(definitions); + dictTermsSort(definitions); const {expression, reading} = definitions[0]; const source = text.slice(0, sourceLength); for (const {text, furigana} of jpDistributeFuriganaInflected(expression, reading, source)) { |