summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSaikari <[email protected]>2026-01-30 21:07:03 +0300
committerGitHub <[email protected]>2026-01-30 21:07:03 +0300
commit5646519958738a45b448a264e1be81f305fed677 (patch)
tree3830db1785bf0fc471c6b9de997fda31365d1b11
parentb006af493bff65fcffd198db70ec2c8046f6575e (diff)
Simplify file access check in os.lua
-rw-r--r--xmake/core/base/os.lua5
1 files changed, 1 insertions, 4 deletions
diff --git a/xmake/core/base/os.lua b/xmake/core/base/os.lua
index 9332f2c61..12bc30c1d 100644
--- a/xmake/core/base/os.lua
+++ b/xmake/core/base/os.lua
@@ -1187,10 +1187,7 @@ function os.isexec(filepath)
end
end
elseif os.isfile(filepath) then
- if os._access then
- return os._access(filepath, "x")
- end
- return true
+ return os._access(filepath, "x")
end
return false
end