summaryrefslogtreecommitdiff
path: root/xmake/modules/detect
diff options
context:
space:
mode:
authorruki <[email protected]>2019-06-19 00:48:20 +0800
committerruki <[email protected]>2019-06-18 22:50:04 +0800
commitd6d53fa5696b012d435506d3b88edb5851c269f8 (patch)
treef517fb5c82d58e47d4d8860907b80cdc70f2acc8 /xmake/modules/detect
parent96bda12356f3d69edae33a31d384d28b1ef74274 (diff)
modify code style
Diffstat (limited to 'xmake/modules/detect')
-rw-r--r--xmake/modules/detect/tools/find_nvcc.lua3
1 files changed, 1 insertions, 2 deletions
diff --git a/xmake/modules/detect/tools/find_nvcc.lua b/xmake/modules/detect/tools/find_nvcc.lua
index 5cd11e3dc..5b97f3dc9 100644
--- a/xmake/modules/detect/tools/find_nvcc.lua
+++ b/xmake/modules/detect/tools/find_nvcc.lua
@@ -43,9 +43,8 @@ function main(opt)
opt = opt or {}
opt.parse = opt.parse or "V(%d+%.?%d*%.?%d*.-)%s"
- local program = nil
-
-- find program
+ local program = nil
if opt.program then
program = find_program(opt.program, opt)
end