mirror of
https://github.com/neovim/neovim.git
synced 2025-10-22 17:11:49 +00:00
Remove goto
statement in lua code.
`goto` is another luajit extension not compatible with 5.1.
This commit is contained in:
@@ -348,15 +348,13 @@ local function rmdir(path)
|
|||||||
return nil
|
return nil
|
||||||
end
|
end
|
||||||
for file in lfs.dir(path) do
|
for file in lfs.dir(path) do
|
||||||
if file == '.' or file == '..' then
|
if file ~= '.' and file ~= '..' then
|
||||||
goto continue
|
local ret, err = os.remove(path..'/'..file)
|
||||||
|
if not ret then
|
||||||
|
error('os.remove: '..err)
|
||||||
|
return nil
|
||||||
|
end
|
||||||
end
|
end
|
||||||
local ret, err = os.remove(path..'/'..file)
|
|
||||||
if not ret then
|
|
||||||
error('os.remove: '..err)
|
|
||||||
return nil
|
|
||||||
end
|
|
||||||
::continue::
|
|
||||||
end
|
end
|
||||||
local ret, err = os.remove(path)
|
local ret, err = os.remove(path)
|
||||||
if not ret then
|
if not ret then
|
||||||
|
Reference in New Issue
Block a user