summaryrefslogtreecommitdiff
path: root/xmake/core/base/process.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/base/process.lua')
-rw-r--r--xmake/core/base/process.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/core/base/process.lua b/xmake/core/base/process.lua
index cf5f3744e..1e4fe5434 100644
--- a/xmake/core/base/process.lua
+++ b/xmake/core/base/process.lua
@@ -84,8 +84,7 @@ end
-- gc(subprocess)
function _subprocess:__gc()
- local ok = self._PROC and process._close(self._PROC) or false
- if ok then
+ if self._PROC and process._close(self._PROC) then
self._PROC = nil
end
end