mirror of
https://github.com/neovim/neovim.git
synced 2025-10-21 17:21: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
|
||||
end
|
||||
for file in lfs.dir(path) do
|
||||
if file == '.' or file == '..' then
|
||||
goto continue
|
||||
if file ~= '.' and file ~= '..' then
|
||||
local ret, err = os.remove(path..'/'..file)
|
||||
if not ret then
|
||||
error('os.remove: '..err)
|
||||
return nil
|
||||
end
|
||||
end
|
||||
local ret, err = os.remove(path..'/'..file)
|
||||
if not ret then
|
||||
error('os.remove: '..err)
|
||||
return nil
|
||||
end
|
||||
::continue::
|
||||
end
|
||||
local ret, err = os.remove(path)
|
||||
if not ret then
|
||||
|
Reference in New Issue
Block a user