*: luacheck fixes (#8368)

These weren't caught during the Japanese support plugin review.

Signed-off-by: Aleksa Sarai <cyphar@cyphar.com>
This commit is contained in:
Aleksa Sarai
2021-10-24 19:58:14 +11:00
committed by GitHub
parent db21521968
commit d0d2d0d1d6
5 changed files with 23 additions and 26 deletions

View File

@@ -601,7 +601,7 @@ function util.isCJKChar(c)
if #c < 3 then
return false
end
code = BaseUtil.utf8charcode(c)
local code = BaseUtil.utf8charcode(c)
-- The weird bracketing is intentional -- we use the lowest possible
-- codepoint as a shortcut so if the codepoint is below U+1100 we
-- immediately return false.