[chore] Fix a few luacheck errors (#8461)

This commit is contained in:
poire-z
2021-11-21 19:33:09 +01:00
committed by GitHub
parent 3461f8af31
commit 6f2fdd96f8
3 changed files with 35 additions and 36 deletions

View File

@@ -816,8 +816,8 @@ function ReaderDictionary:startSdcv(word, dict_names, fuzzy_search)
-- because sdcv cannot handle CJK text properly when fuzzy searching (with
-- Japanese, it returns hundreds of useless results).
local shouldnt_fuzzy_search = true
for _, word in ipairs(words) do
if not util.hasCJKChar(word) then
for _, w in ipairs(words) do
if not util.hasCJKChar(w) then
shouldnt_fuzzy_search = false
break
end