fix: remove gotos because this breaks lua 5.1 (#583)

This commit is contained in:
TJ DeVries
2021-03-03 11:51:44 -05:00
committed by GitHub
parent 20984fc5cd
commit 0fef4c3e17
2 changed files with 9 additions and 8 deletions

View File

@@ -190,10 +190,9 @@ local function check_capabilities(feature)
local supported_client = false
for _, client in pairs(clients) do
supported_client = client.resolved_capabilities[feature]
if supported_client then goto continue end
if supported_client then break end
end
::continue::
if supported_client then
return true
else