summaryrefslogtreecommitdiff
path: root/xmake/modules/detect/tools
diff options
context:
space:
mode:
authorruki <[email protected]>2023-06-11 23:47:26 +0800
committerruki <[email protected]>2023-06-11 23:47:26 +0800
commit01807b861740f0db0398fe4928a6b322164d1c26 (patch)
tree7406d024772871503a38da9467d3eac76a0776b4 /xmake/modules/detect/tools
parent9c642180feb949d477cd9dc316307ce1463607a9 (diff)
format code style
Diffstat (limited to 'xmake/modules/detect/tools')
-rw-r--r--xmake/modules/detect/tools/find_rpm.lua8
-rw-r--r--xmake/modules/detect/tools/find_zypper.lua10
2 files changed, 1 insertions, 17 deletions
diff --git a/xmake/modules/detect/tools/find_rpm.lua b/xmake/modules/detect/tools/find_rpm.lua
index 02c59b5e3..fc04f1d0d 100644
--- a/xmake/modules/detect/tools/find_rpm.lua
+++ b/xmake/modules/detect/tools/find_rpm.lua
@@ -36,19 +36,11 @@ import("lib.detect.find_programver")
-- @endcode
--
function main(opt)
-
- -- init options
opt = opt or {}
-
- -- find program
local program = find_program(opt.program or "rpm", opt)
-
- -- find program version
local version = nil
if program and opt and opt.version then
version = find_programver(program, opt)
end
-
- -- ok?
return program, version
end
diff --git a/xmake/modules/detect/tools/find_zypper.lua b/xmake/modules/detect/tools/find_zypper.lua
index cc0fb0445..02c96dec3 100644
--- a/xmake/modules/detect/tools/find_zypper.lua
+++ b/xmake/modules/detect/tools/find_zypper.lua
@@ -36,19 +36,11 @@ import("lib.detect.find_programver")
-- @endcode
--
function main(opt)
-
- -- init options
opt = opt or {}
-
- -- find program
local program = find_program(opt.program or "zypper", opt)
-
- -- find program version
local version = nil
if program and opt and opt.version then
version = find_programver(program, opt)
end
-
- -- ok?
return program, version
-end \ No newline at end of file
+end