summaryrefslogtreecommitdiff
path: root/xmake/core/base/coroutine.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/coroutine.lua')
-rw-r--r--xmake/core/base/coroutine.lua6
1 files changed, 0 insertions, 6 deletions
diff --git a/xmake/core/base/coroutine.lua b/xmake/core/base/coroutine.lua
index 2f1c347a8..43a5d6d8a 100644
--- a/xmake/core/base/coroutine.lua
+++ b/xmake/core/base/coroutine.lua
@@ -31,8 +31,6 @@ coroutine._resume = coroutine._resume or coroutine.resume
-- resume coroutine
function coroutine.resume(co, ...)
-
- -- resume it
local ok, results = coroutine._resume(co, ...)
if not ok then
@@ -47,12 +45,8 @@ function coroutine.resume(co, ...)
errors = results:sub(pos + 1)
end
end
-
- -- failed
return false, errors
end
-
- -- ok
return true, results
end