Skip to content

Commit a2bb5a3

Browse files
committed
make type-check happy
1 parent dc15ea9 commit a2bb5a3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

script/file-uri.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ function m.encode(path)
4949

5050
--lower-case windows drive letters in /C:/fff or C:/fff
5151
local start, finish, drive = path:find '/(%u):'
52-
if drive then
52+
if drive and finish then
5353
path = path:sub(1, start) .. drive:lower() .. path:sub(finish, -1)
5454
end
5555

script/parser/compile.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -470,7 +470,7 @@ end
470470

471471
local function parseLongString()
472472
local start, finish, mark = sfind(Lua, '^(%[%=*%[)', Tokens[Index])
473-
if not mark then
473+
if not start then
474474
return nil
475475
end
476476
fastForwardToken(finish + 1)

0 commit comments

Comments
 (0)